Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/landamessenger/smart-listview-builder

Control the current position of your ListView in Flutter
https://github.com/landamessenger/smart-listview-builder

dart flutter listview smart

Last synced: about 1 month ago
JSON representation

Control the current position of your ListView in Flutter

Awesome Lists containing this project

README

        

# SmartListViewBuilder

ListView Builder which notifies different positions.

Example:

```dart
@override
Widget build(BuildContext context) {
return SmartListViewBuilder(
physics: const BouncingScrollPhysics(),
addAutomaticKeepAlives: true,
addRepaintBoundaries: true,
itemCount: 3,
reverse: true,
itemBuilder: (BuildContext content, int index) {
return Container(
padding: const EdgeInsets.all(7.5),
child: Text('$index item'),
);
},
onStart: () {
// initial position
},
onMedium: () {
// medium position
},
onEnd: () {
// end position
},
);
}
```