Code Monkey home page Code Monkey logo

Comments (10)

denisbabineau avatar denisbabineau commented on May 26, 2024 2

I've found that if you set a GlobalKey on your Slidable's child it fixes (works around?) this issue. My understanding is that it is caused by the child moving within the widget tree, setting a key allows it to reuse its state under a different parent as explained here:

https://www.youtube.com/watch?v=kn0EOS-ZiIc&feature=youtu.be&t=510

from flutter_slidable.

letsar avatar letsar commented on May 26, 2024 2

I think this will be fixed in the upcoming version. Can someone test it with the revival branch?

from flutter_slidable.

florianhaar avatar florianhaar commented on May 26, 2024

Is there any progress for this bug? It is really anoying that initState is called 1-3 times while the item is slided.

from flutter_slidable.

frankyvij avatar frankyvij commented on May 26, 2024

Hello - can this please be prioritised? Its common to have animations in widgets and/or network request to get data. I have tried to find a workaround, but it seems impossible with current implementation.

from flutter_slidable.

dineshsheoran24 avatar dineshsheoran24 commented on May 26, 2024

Any progress ??

from flutter_slidable.

letsar avatar letsar commented on May 26, 2024

The widget is rebuilding because some widgets are removed/added in the tree during the animation. I will see if I can remove this behavior in my refactoring.

from flutter_slidable.

husitawi avatar husitawi commented on May 26, 2024

For info, this behavior also happens with ValueListenableBuilder in the child's subtree. ( Many thanks for the package! )

from flutter_slidable.

husitawi avatar husitawi commented on May 26, 2024

Ill try to test this ASAP

from flutter_slidable.

ofoudane avatar ofoudane commented on May 26, 2024

Is this problem fixed. After some investigations, I found out that the problem is related to using InheritedWidget and changing the widget hierarchy when closing the slider. One potential solution would be to only use Stateful and Stateless widgets, and propagating the data for all Slidablechilds.

from flutter_slidable.

letsar avatar letsar commented on May 26, 2024

Fixed in 1.0

from flutter_slidable.

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.