Skip to content

A widget for observing data related to the child widgets being displayed in a scrollview.

License

Notifications You must be signed in to change notification settings

percival888/flutter_scrollview_observer

 
 

Repository files navigation

Flutter ScrollView Observer

author pub stars

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.

☕ Support me

ko-fi wechat

Chat: Join WeChat group

📖 Article

🔨 Feature

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.

🎀 Support

  • ListView
  • SliverList
  • GridView
  • SliverGrid
  • Mixing usage of SliverPersistentHeader, SliverList and SliverGrid
  • ScrollView built by third-party package.

🏞 Related Example

📦 Installing

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

🖨 About Me

About

A widget for observing data related to the child widgets being displayed in a scrollview.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 88.2%
  • C++ 5.8%
  • CMake 3.0%
  • HTML 1.3%
  • Ruby 0.9%
  • Swift 0.4%
  • Other 0.4%