bn_refresh_indicator 1.3.1 bn_refresh_indicator: ^1.3.1 copied to clipboard
A system based refresh & load component.It's very low intrusive, and easy to use, just like flutter with.Welcome to support star if it can help.
bn_refresh_indicator #
A system based refresh & load component.
How To Use It . #
It's basically the same as the native RefreshIndicator.
BnRefreshIndicator(
onRefresh: () async {
await Future.delayed(Duration(seconds: 1));
_counter = 10;
setState(() {});
return;
},
onLoadMore: () async {
await Future.delayed(Duration(seconds: 1));
_counter += 10;
setState(() {});
return;
},
child: ListView.builder(
itemBuilder: (context, index) {
return Card(
child: Center(
child: Text('index -- $index'),
),
);
},
itemCount: _counter,
itemExtent: 88.0,
),
)
Reference #
Extension #
It's very low intrusive, and if you don't need to load it just keep refresh, just Set onLoadMore
to null or not assign it a value.
Welcome to support star if it can help.