QuirijnGB / lazy-load-scrollview

A wrapper for a Flutter ScrollView which enables lazy loading
BSD 2-Clause "Simplified" License
109 stars 26 forks source link

No animation when reached to bottom. #2

Open amangautam1 opened 5 years ago

amangautam1 commented 5 years ago

There should be some indicator to show that more items are loading or list has been finished.

nathanael540 commented 4 years ago

Hi, I used myself code for do this.

I show thats the end, on loadmore function adding an element to widget's list that says "The END";

return Container( height: MediaQuery.of(context).copyWith().size.height, child: Column( children: <Widget>[ Expanded( child: LazyLoadScrollView( onEndOfPage: _loadMais, isLoading: isLoading, scrollOffset: 5, child: ListView( children: tela), ), ), Container( child: (isLoading && !fim) ? Padding(padding: EdgeInsets.all(20), child: new CircularProgressIndicator()) : new Row() ) ], ), );

And on build layout I add on logic to show Loading indicator.

Saifallak commented 4 years ago

you can try this @excogitatr/pagination_view Github pagination_view Pub