Language: English | δΈζ
This is a library of widget that can be used to listen for child widgets those are being displayed in the scroll view.
Chat: Join WeChat group
- Flutter - Getting the items information those are currently displaying in ScrollView | WeChat | JueJin
- Flutter - Scrolling to a specific item in the ScrollView!π₯ | WeChat | JueJin
- Flutter - Quickly implement the effect of the chat session list, perfect π― | WeChat | JueJin
- Flutter - New upgradeπ±Supports observing ScrollView built by third packageπͺ | WeChat | JueJin
- Flutter - Play alternately waterfall flow video π | WeChat | JueJin
- Flutter - Keep IM message position greatly upgraded (supports generative messages like ChatGPT) π€ | WeChat | JueJin
- Flutter - Anti-occlusion of form in ScrollView π | WeChat | JueJin
- Flutter - Quickly achieve half-view exposure statistic π | WeChat | JueJin
- Flutter - How to quickly implement an contact list page (azlist) π | WeChat | JueJin
- Flutter - Supports observing NestedScrollView, with greater compatibility π | WeChat | JueJin
- Flutter - Offset effect in PageView | WeChat | JueJin
- Flutter - Parallax effect in PageView | WeChat | JueJin
- Flutter - Syncing Detail Page TabBar with Modules? Nailed It! | WeChat | JueJin
- Flutter - Initial Anchor And Optimization For Detail Pages | WeChat | JueJin
You do not need to change the view you are currently using, just wrap a
ViewObserveraround the view to achieve the following features.
- Observing child widgets those are being displayed in ScrollView
- Support for scrolling to a specific item in ScrollView
- Quickly implement the chat session page effect
- Support for keeping IM message position when inserting or updating messages, avoiding jitter.
-
PageView -
ListView -
SliverList -
GridView -
SliverGrid - Mixing usage of
SliverPersistentHeader,SliverListandSliverGrid -
NestedScrollView -
ScrollViewbuilt by third-party package.
- π₯ Online Preview
- π Sample images
Add scrollview_observer to your pubspec.yaml file:
dependencies: scrollview_observer: latest_version
Import scrollview_observer in files that it will be used:
import 'package:scrollview_observer/scrollview_observer.dart';
- Wiki Home
- 1γObserving child widgets those are being displayed in the ScrollView
- 2γScrolling to the specified index location
- 3γChat Observer
- GitHub: https://github.com/LinXunFeng
- Email: linxunfeng@yeah.net
- Blogs:
- ε ¨ζ θ‘ε¨: https://fullstackaction.com
- ζι: https://juejin.cn/user/1820446984512392