Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/landamessenger/smart-listview-builder
- Owner: landamessenger
- License: gpl-3.0
- Created: 2023-03-02T15:11:53.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-25T02:54:17.000Z (10 months ago)
- Last Synced: 2024-02-25T05:30:14.037Z (10 months ago)
- Topics: dart, flutter, listview, smart
- Language: C++
- Homepage: https://pub.dev/packages/smart_listview_builder
- Size: 282 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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
},
);
}
```