scrollview_observer 1.26.2
scrollview_observer: ^1.26.2 copied to clipboard
A widget for observing data related to the child widgets being displayed in a ScrollView.
1.26.2 #
- ObserverUtils
- Refine the logic of
calcAnchorTabIndexmethod by @LinXunFeng.
- Refine the logic of
1.26.1 #
- ChatScrollObserver
- Refine the logic of
standbyby @LinXunFeng.
- Refine the logic of
1.26.0 #
- NestedScrollUtil
- Add await support for
animateToandjumpTomethods by @LinXunFeng.
- Add await support for
1.25.2 #
1.25.0 #
- ChatScrollObserver
- Add
customAdjustPosition.
- Add
1.24.0 #
- ObserveModel
- Add
displayingChildModelMap.
- Add
- ChatScrollObserver
- Add
customAdjustPositionDelta.
- Add
1.23.0 #
- ObserverWidget
- Make
ObserverWidgetlistenable.
- Make
1.22.0 #
- ObserverWidget
- Add
scrollNotificationPredicate.
- Add
1.21.1 #
- ObserverCore
- Improve the logic of
handleListObserveandhandleGridObserve.
- Improve the logic of
1.21.0 #
- ObserverController
- Add
onPrepareScrollToIndexforjumpToandanimateTo.
- Add
- NestedScrollUtil
- Add
jumpToandanimateTomethods.
- Add
1.20.0 #
- ObserverController
- Add
observeIntervalForScrollingto set the minimum amount of time to wait for firing observe callback during scrolling.
- Add
- ObserverUtils
- Improve the logic of
isDisplayingSliverInViewportmethod.
- Improve the logic of
- ScrollViewOnceObserveNotificationResult
- Add
observeViewportResultModel.
- Add
- ChatScrollObserver
- Add
ChatScrollObserverRefIndexType. - Add
refIndexTypeto specify the role ofrefItemIndexandrefItemIndex.
- Add
- Slivers
- Add
SliverObserveContext.
- Add
- ObserveDisplayingChildModelMixin
- Add
visibleFractionandvisibleMainAxisSize.
- Add
1.19.1 #
- ListViewObserver
- Support
SliverVariedExtentListin 74.
- Support
- ChatScrollObserver
- Safely obtain the
constraintsof RenderSliver.
- Safely obtain the
- ObserverController
- Adapt to scenes where
CustomScrollViewspecifiescenter.
- Adapt to scenes where
1.19.0 #
- SliverViewObserver
- Add
customOverlapproperty.
- Add
- NestedScrollUtil
- To better support
NestedScrollView.
- To better support
- ObserverCore
- Improve the judgment logic of whether the sliver is visible.
- ObserverController
- Adjust the controller to be modifiable.
1.18.0 #
- ObserverController
- Add some scrolling task notifications extending from
ObserverScrollNotification. - The
jumpTomethod andanimateTomethod supportawait. - Add
isForbidObserveCallbackproperty. - Add
isForbidObserveViewportCallbackproperty.
- Add some scrolling task notifications extending from
1.17.0 #
- ObserverController
- The parameter
isFixedHeightin thejumpTomethod andanimateTomethod supports GridView and supports ScrollView built by third-party package by @percival888 in #52.
- The parameter
1.16.5 #
- ObserverWidget
- Improve the processing logic of scroll notification when scrolling with the mouse wheel is not smooth by @qiangjindong in #48.
- ChatScrollObserver
- Update
isShrinkWraponce during initialization by @LinXunFeng. #47
- Update
- ObserverController
- Fix unable to jump when sliver is too far away and has no any child by @LinXunFeng. #45
- Fix continuous page turning due to incorrect index by @LinXunFeng.
1.16.4 #
- Supplement missing type conversion adjustments.
1.16.3 #
- Observation Model
- Add viewport property to observation model.
- Correct the calculation logic of some values to adapt to the scene of multiple slivers.
1.16.2 #
1.16.1 #
- Compatible with flutter 3.13.0
1.16.0 #
- ObserverController
dispatchOnceObservemethod supports directly getting observation result.
1.15.0 #
- Slivers
- Add
SliverObserveContextToBoxAdapter.
- Add
1.14.1 #
- ChatScrollObserver
- Improve the logic of the conversion type.
1.14.0 #
- ChatScrollObserver
- Support for keeping position of generative messages (eg: ChatGPT)
1.13.2 #
- ObserverWidget
- Fix getting bad observation result on web. Thanks to @rmasarovic for the test in #31
1.13.1 #
- ObserverCore
- Fix no getting all child widgets those are displayed when there are separators in
ListView. #31
- Fix no getting all child widgets those are displayed when there are separators in
- ObserverUtils
- Safely call
findRenderObjectmethod.
- Safely call
1.13.0 #
- ObserverUtils
- The
calcAnchorTabIndexmethod supports GridView.
- The
- ObserverCore
- Refine the logic of
handleListObservemethod andhandleGridObservemethod.
- Refine the logic of
1.12.0 #
- ObserverWidget
- Support custom observation object and observation logic.
- Refine the logic for finding the first sliver in viewport.
1.11.0 #
- ChatScrollObserver
- Support inserting multiple messages at once.
- ObserverWidget
GridViewObserveris compatible with waterfall flow.SliverViewObserversupports observation of viewport.
1.10.0 #
- ObserverController
- Improve
[_calculateTargetLayoutOffset]logic. - The
jumpTomethod andanimateTomethod both add a parameter[padding].
- Improve
- ObserverIndexPositionModel
- Add property
[padding].
- Add property
1.9.2 #
- ObserverWidget
- Catch the exception thrown by getting size.
1.9.1 #
- ObserverController
- Modify offset calculation logic in method
[_calculateTargetLayoutOffset].
- Modify offset calculation logic in method
1.9.0 #
- ObserverWidget
- Add property
[autoTriggerObserveTypes]and property[triggerOnObserveType].
- Add property
- ObserverController
- Method
[dispatchOnceObserve]adds parameter[isForce].
- Method
1.8.0 #
- Scrolling to the specified index location
- Supports initializing the index position of the scrollView.
- Deprecated
[clearIndexOffsetCache], please use[clearScrollIndexCache]instead.
1.7.0 #
- ChatScrollObserver
- Add the property
[fixedPositionOffset]. - Deprecated
[ChatObserverClampinScrollPhysics], please use[ChatObserverClampingScrollPhysics]instead.
- Add the property
1.6.2 #
- Fix lib not working when
itemExtentis set inListView.
1.6.1 #
- Fix lib not working when
shrinkWrapistruein scrollView.
1.6.0 #
- ChatScrollObserver
- Add
onHandlePositionCallback.
- Add
1.5.1 #
- Fix scrollView being stuck when child widget get
[size].
1.5.0 #
- ChatScrollObserver
- Quickly implement the chat session page effect.
- Scrolling to the specified index location
- Add the property
[cacheJumpIndexOffset].
- Add the property
1.4.0 #
- Scrolling to the specified index location
- New
alignmentparameter in thejumpToandanimateTomethods. - Fixed a bug that caused scrolling to the first child to jitter when using
offsetparameter.
- New
1.3.0 #
- Scrolling to the specified index location supports the
SliverPersistentHeader. - Add
ObserverUtils- Method
calcPersistentHeaderExtent: Calculate current extent ofRenderSliverPersistentHeader. - Method
calcAnchorTabIndex: Calculate the anchor tab index.
- Method
1.2.0 #
- The
jumpToandanimateTomethods add anisFixedHeightparameter to optimize performance when the child widget is of fixed height - Add the properties
[leadingMarginToViewport]and[trailingMarginToViewport] - Support mixing usage of
SliverListandSliverGrid
1.1.0 #
- Supports scrolling to the specified index location
1.0.1 #
- Delete useless code
1.0.0 #
- Implements a way to use without sliver [BuildContext]
- Change [onObserve] to [onObserveAll], and add a new [onObserve] callback to listen for changes in the child widget display of the first sliver
- Add [ObserverController]
0.1.0 #
- Support
GridView - Support the horizontal
0.0.1 #
- Initial release