Answers for "flutter scaffold open drawer"

0

flutter scaffold open drawer

@override
Widget build(BuildContext context) {
  return Scaffold(
    drawer: Drawer(),
    floatingActionButton: Builder(builder: (context) {
      return FloatingActionButton(
        onPressed: () => Scaffold.of(context).openDrawer(), // <-- Opens drawer.
      );
    }),
  );
}
Posted by: Guest on September-15-2021

Browse Popular Code Answers by Language