smart_listview_builder 0.0.1 copy "smart_listview_builder: ^0.0.1" to clipboard
smart_listview_builder: ^0.0.1 copied to clipboard

Smart listview

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