Comments (10)
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.
I think this will be fixed in the upcoming version. Can someone test it with the revival branch?
from flutter_slidable.
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.
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.
Any progress ??
from flutter_slidable.
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.
For info, this behavior also happens with ValueListenableBuilder in the child's subtree. ( Many thanks for the package! )
from flutter_slidable.
Ill try to test this ASAP
from flutter_slidable.
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.
Fixed in 1.0
from flutter_slidable.
Related Issues (20)
- Open or Close event for Slidable HOT 1
- How generate rounded slidable?
- SlidableView appears and overlaps another view HOT 2
- Gradient as backgroundColor HOT 1
- Not allow to slide several slidable HOT 1
- How to slide horizontally and vertically?
- Is it possible to trigger an action when the slide is scrolled to full extent? (like Gmail) HOT 1
- How to setup the Slidable to occupy 1/4 or 1/8 instead of 1/2 of the size the Widget applied to Slidable? HOT 2
- flutter_slidable 3.0.0 lib issue HOT 1
- How can I listen event when user start swipe it HOT 1
- How to close slidable on tap of anywhere on the screen outside Slidable widget HOT 4
- SlidableController.dispatchEndGesture() reports wrong direction for StillGesture
- How can i do to increment the size of the text in Slidable.? HOT 2
- Textformfield inside Slideable on Ios HOT 3
- Slidable status (open/close) HOT 2
- Doesn't auto close when another slidable in list is open HOT 2
- Slidable position is reseting after refresh.
- Back swipe navigation on flutter iOS not working when using flutter_slidable package
- How to provide border radius to it ?
- The icon of SlidableAction will not be displayed in the center when padding is not set
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 flutter_slidable.