Comments (12)
Hi @sm2017.
First of all, I'm sorry for the delay. I was on a trip for the past few days and just got back today.
The package doesn't have an AnimatedList
equivalent right now.
I'll definitely consider adding one in the future. Thank you for your suggestion!
from infinite_scroll_pagination.
No updates. But let's reopen the issue in case anyone else has interest.
from infinite_scroll_pagination.
Hi, I have not managed to use an animated list.
If you have time, can you please make a small example, surely someone else will also find this useful.
Thank you so much
from infinite_scroll_pagination.
Hi @sm2017.
First of all, I'm sorry for the delay. I was on a trip for the past few days and just got back today.
The package doesn't have anAnimatedList
equivalent right now.
I'll definitely consider adding one in the future. Thank you for your suggestion!
Hey there any update of animated list equivalent?
Thanks
from infinite_scroll_pagination.
Yea any update with being able to remove items from the list in an animated way?
from infinite_scroll_pagination.
@EdsonBueno I am very interested in this, do you know if there is a temporary way to achieve this behavior?
from infinite_scroll_pagination.
Hi @basketball-ico
Please, take a look at this.
It might help
from infinite_scroll_pagination.
Would love to see this!
from infinite_scroll_pagination.
I had a play with this today and took @EdsonBueno advice I tried to implement the bare bones PagedSliverBuilder as per his link here I didn't manage to make it work and I think the problem is here
completedListingBuilder: ( context, itemBuilder, itemCount, noMoreItemsIndicatorBuilder, ) => SliverAnimatedList( initialItemCount: itemCount, itemBuilder: (context, index, animation,) { final finished = itemCount = index; return SlideTransition( position: animation.drive(offset), child: itemBuilder.call( context, index, ), ); }, ),
in the above example the variable finished points to the problem, I don't claim to be an expert so please correct me if I'm wrong, I think we can't return a single item here as we need the full list before we can start to animate it, and by the time its finished I will have a list of widgets not a single widget so this would need a new builder that accepted a list of widgets, happy to learn otherwise, here is my full widget
PagedSliverBuilder<int, InvoiceItem>( pagingController: _invoicesViewModel.getPagingController(), builderDelegate: PagedChildBuilderDelegate<InvoiceItem>( animateTransitions: false, itemBuilder: (context, invoiceItem, index) { return _invoiceItem( invoiceItem: invoiceItem, invoiceItemTileSelectState: null, ); }, firstPageErrorIndicatorBuilder: (context) => ew.ErrorWidget( showImage: true, error: _invoicesViewModel.getPagingController().error as ApiResponse, onTryAgain: () => _invoicesViewModel.getPagingController().refresh(), ), noItemsFoundIndicatorBuilder: _emptyListIndicator, newPageErrorIndicatorBuilder: (context) => _errorListItemWidget(onTryAgain: _invoicesViewModel.retryLastRequest), firstPageProgressIndicatorBuilder: (context) => const Center( child: LoadingWidget(), ), newPageProgressIndicatorBuilder: (context) => _loadingListItemWidget(), ), completedListingBuilder: ( context, itemBuilder, itemCount, noMoreItemsIndicatorBuilder, ) => SliverAnimatedList( initialItemCount: itemCount, itemBuilder: (context, index, animation,) { final finished = itemCount == index; return SlideTransition( position: animation.drive(offset), child: itemBuilder.call( context, index, ), ); }, ), loadingListingBuilder: ( context, itemBuilder, itemCount, progressIndicatorBuilder, ) => _loadingListItemWidget(), errorListingBuilder: ( context, itemBuilder, itemCount, errorIndicatorBuilder, ) => ew.ErrorWidget( showImage: true, error: _invoicesViewModel.getPagingController().error as ApiResponse, onTryAgain: () => _invoicesViewModel.getPagingController().refresh(), ), )
from infinite_scroll_pagination.
Also interested
from infinite_scroll_pagination.
Also interested on this. I am having a very bad time deleting items from the list
from infinite_scroll_pagination.
This would have been a great feature to have. Has any one had luck with using custom PagedListView?
from infinite_scroll_pagination.
Related Issues (20)
- pagedpageview can't scroll in desktop web HOT 2
- [Question] Animating Items in PagedListView on Add/Remove HOT 1
- [Question] Disable Automatic Next Page Load HOT 2
- Issue while Loading (firstPageProgressIndicatorBuilder) using ListView HOT 5
- No items fetched after fetching less than invisibleItemsThreshold items HOT 5
- GetX Controller not working
- How to handle item deletion? HOT 1
- _pagingController dispose issue when used inside a BLoC HOT 2
- [Feature Request]: Auto scroll/slide PagedPageView children HOT 1
- Infinite Staggered View HOT 2
- How can i do offline search/filter? HOT 2
- Using this package with nestedscrollview/tab bars causes issue with scrolling HOT 3
- Expose ScrollBehavior
- Plans for new release HOT 2
- Example beer API seems to be not available anymore HOT 2
- Is it possible to insert a new item with animation? HOT 1
- how to remove an item HOT 1
- How to retain scroll position after forcing a controll refresh? HOT 1
- Prepend functionality HOT 2
- Flutter 3.22 support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infinite_scroll_pagination.