load_more_ebznz 0.0.6 load_more_ebznz: ^0.0.6 copied to clipboard
Load More Package.
load more desc
Features #
Supported :
- English .
- Arabic .
- Chinese .
Getting started #
load more Get start
Usage #
load more usage
LoadMoreEbznz(
isFinish: _post.length <= count,
onLoadMore:getData ,
whenEmptyLoad: false,
delegate: const DefaultLoadMoreDelegate(),
textBuilder:System.lang == 'en'? TextBuilderEbznz.english: TextBuilderEbznz.arabic,
child: ListView(...),
)
Future<bool> getData() async {
bool checkload = true;
print("onLoadMore");
await Future.delayed(Duration(seconds: 0, milliseconds: 2000));
setState((){
count != _post.length?
{
checkload = true ,
count = count + 10 ,
count >= _post.length?
{count = _post.length , checkload = true ,}:
checkload = true ,}:
checkload = false;
});
return checkload;
}
Additional information #
load more Additional information