Hello, i am trying to use this beautiful layout, but when i open the app, it comes with the drawer opened can u please help me
Here is the code
class _DrawerScaleIconState extends State {
int selectedMenuItemId;
final GlobalKey _scaffoldKey = new GlobalKey();
DrawerScaffoldController controller =
DrawerScaffoldController(open: Direction.left);
Hello, i am trying to use this beautiful layout, but when i open the app, it comes with the drawer opened can u please help me
Here is the code
class _DrawerScaleIconState extends State {
int selectedMenuItemId;
final GlobalKey _scaffoldKey = new GlobalKey();
DrawerScaffoldController controller =
DrawerScaffoldController(open: Direction.left);
@override void initState() { selectedMenuItemId = menuWithIcon.items[0].id; // controller.toggle(); super.initState(); }
@override Widget build(BuildContext context) { Home homeScreen = Home(context); Profile profileScreen = Profile(context); Help helpScreen = Help(context);