Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 651 Bytes

README.md

File metadata and controls

33 lines (30 loc) · 651 Bytes

SmartListViewBuilder

ListView Builder which notifies different positions.

Example:

@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
    },
  );
}