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

outdated

A system based refresh & load component.

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 #

refresh

Extension #

It's very low intrusive, and if you don't need to load it just keep refresh, just Set onLoadMore to null or Or not assign it a value.

0
likes
20
pub points
35%
popularity

Publisher

unverified uploader

A system based refresh & load component.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on bn_refresh_indicator