flutter_loadmore_any

Last updated:

0 purchases

flutter_loadmore_any Image
flutter_loadmore_any Images
Add to Cart

Description:

flutter loadmore any

screenshot #

Getting started #
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
flutter_loadmore_any: <latest_version>
copied to clipboard
Import it
Now in your Dart code, you can use:
import 'package:flutter_loadmore_any/flutter_loadmore_any.dart';
copied to clipboard
Usage #
LoadMoreView(
onLoadMore: () => load(),
isEmpty: false,
isError: false,
duration: 500,
slivers: [
SliverList(
delegate:
SliverChildBuilderDelegate((BuildContext context, int index) {
return Container(
child: Text(list[index].toString()),
height: 40.0,
alignment: Alignment.center,
);
}, childCount: list.length)),
],
),
copied to clipboard
在slivers中添加普通widget时可以使用SliverToBoxAdapter转换一下
SliverToBoxAdapter(
child: Text('Test'))
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.