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 - 获取ListView当前正在显示的Widget信息 | 备用链接
- Flutter - 列表滚动定位超强辅助库,墙裂推荐!🔥 | 备用链接
- Flutter - 快速实现聊天会话列表的效果,完美💯 | 备用链接
- Flutter - 船新升级😱支持观察第三方构建的滚动视图💪 | 备用链接
- Flutter - 瀑布流交替播放视频 🎞 | 备用链接
- Flutter - IM保持消息位置大升级(支持ChatGPT生成式消息) 🤖 | 备用链接
- Flutter - 滚动视图中的表单防遮挡 🗒 | 备用链接
- Flutter - 秒杀1/2曝光统计 📊 | 备用链接
You do not need to change the view you are currently using, just wrap a
ViewObserver
around 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.
-
ListView
-
SliverList
-
GridView
-
SliverGrid
- Mixing usage of
SliverPersistentHeader
,SliverList
andSliverGrid
-
ScrollView
built by third-party package.
🏞 Related Example
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 scroll view
- 2、Scrolling to the specified index location
- 3、Chat Observer
- GitHub: https://github.com/LinXunFeng
- Email: [email protected]
- Blogs: