New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with showFlexibleBottomSheet - DraggableScrollableController is not attached to a sheet #57
Comments
I had to roll back to ^1.0.5 for the error to go away whenever I'd call skowFlexibleBottomSheet, even v2.0.0 was broken. Maybe it has to do with the latest Flutter update, I'm on the master channel which might have changed something with the DraggableScrollableController code. I don't know, but I'd be surprised if I'm the only person getting this bug. |
Same error |
Same 🐛 |
Same error with new flutter 3.3.0 :
|
Alright, that fix makes sense, good deal. Now it just needs to be patched in a new version release, then we'll be able to update to the corrected build. Will keep an eye out for the upgrade, would rather not create a fork to apply that change when it should be changed for everyone. Thanks! |
Forget it, here is the PR #64 |
The reason of issue: content of FlexibleBottomSheet uses size of it's controller when controller was not attached - currentExtent: _controller.size,
+ currentExtent: _controller.isAttached
+ ? _controller.size
+ : widget.initHeight, Fixed on: #65 |
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2022-09-26.at.14.21.32.mp4 |
Same bug. Is it fixed? |
I'm getting this error all of a sudden after upgrading to the latest version:
I tried a bunch of debug steps, looked into the code, doublechecked usage of showFlexibleBottomSheet, checked all issues, and can't figure it out. It was working fine before, I'd show my code, but it's basically the same as what you show in the examples. Any suggestions?
The text was updated successfully, but these errors were encountered: