Closed gabrielCuringa closed 1 year ago
Yes you are right. This is a known issue. I'm working on it.
Same issue here,
Please fix it as soon as possible
Hello, Is there any news about it?
hi any updates?
Still working on this. But no solution found for the moment...
Any guess what's the reason for that?
After set state is called opened value is overridden by default showOnAppear
Please try like this. it's working for me ''' bool _showOnAppear = false;
@override Widget build(BuildContext context) { return SlideTransition( position: _offsetAnimation, child: SolidBottomSheet( showOnAppear: _showOnAppear, controller: _bottomSheetController, headerBar: headerWidget(), body: Container(), onHide: () => _showOnAppear = false, onShow: () => _showOnAppear = true, ) ); } '''
@LCostaN doesn't seem to work for me, sadly. @dbenitez-bcn any news? :)
This is pretty old, but in case if someone is still stuck with this issue, separating out the state handling to a separate Stateful Widget worked for me.
In my case I had a form inside the BottomSheet, So i just separated out the form portion and its state as a separate Widget and its working fine now.
This isn't a fix but a workaround for the problem.
The component closes instantly when the setState function is called.