GIfatahTH / states_rebuilder

a simple yet powerful state management technique for Flutter
494 stars 56 forks source link

Close drawer & bottomSheet programmatically #274

Closed tontonanrakyat closed 1 year ago

tontonanrakyat commented 2 years ago

RM.scaffold.openDrawer() RM.scaffold.openEndDrawer() RM.scaffold.showBottomSheet()

Please add an example to ex004_00_navigation folder how to close/hide/remove drawer, endDrawer, bottomSheet programmatically.

I tried Navigator.back() or Navigator.pop(context), but it's give me back to previous screen instead of close the drawer.

topcheese commented 2 years ago

I think I needed this the last time I was working on my app. Thanks for sharing!

GIfatahTH commented 1 year ago

Example add https://github.com/GIfatahTH/states_rebuilder/blob/master/examples/ex004_00_navigation/lib/ex19_dialogs.dart

tontonanrakyat commented 1 year ago

Thank you so much.