Closed Shawn1912 closed 3 years ago
I'm making a custom appbar and need to open the drawer when a button is pressed.
I messaged @shiburagi on LinkedIn and he was really kind to reply promptly. Thanks a lot, brother!
Need to create a DrawerScaffoldController final DrawerScaffoldController controller = DrawerScaffoldController(); example
DrawerScaffoldController
final DrawerScaffoldController controller = DrawerScaffoldController();
and assign it to DrawerScaffold() controller: controller, example
DrawerScaffold()
controller: controller,
Then, to open drawer call controller.open() or controller.toggle(Direction.left) example
controller.open()
controller.toggle(Direction.left)
I'm making a custom appbar and need to open the drawer when a button is pressed.