Giter VIP home page Giter VIP logo

Comments (12)

EdsonBueno avatar EdsonBueno commented on July 26, 2024 9

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.

EdsonBueno avatar EdsonBueno commented on July 26, 2024 6

No updates. But let's reopen the issue in case anyone else has interest.

from infinite_scroll_pagination.

basketball-ico avatar basketball-ico commented on July 26, 2024 6

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.

sachin052 avatar sachin052 commented on July 26, 2024 2

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!

Hey there any update of animated list equivalent?
Thanks

from infinite_scroll_pagination.

brianschardt avatar brianschardt commented on July 26, 2024

Yea any update with being able to remove items from the list in an animated way?

from infinite_scroll_pagination.

basketball-ico avatar basketball-ico commented on July 26, 2024

@EdsonBueno I am very interested in this, do you know if there is a temporary way to achieve this behavior?

from infinite_scroll_pagination.

EdsonBueno avatar EdsonBueno commented on July 26, 2024

Hi @basketball-ico
Please, take a look at this.
It might help

from infinite_scroll_pagination.

allenzhou101 avatar allenzhou101 commented on July 26, 2024

Would love to see this!

from infinite_scroll_pagination.

martipello avatar martipello commented on July 26, 2024

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.

hermannpoilpre avatar hermannpoilpre commented on July 26, 2024

Also interested

from infinite_scroll_pagination.

carrasc0 avatar carrasc0 commented on July 26, 2024

Also interested on this. I am having a very bad time deleting items from the list

from infinite_scroll_pagination.

AnwarTuha avatar AnwarTuha commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.