GlobalKey<ScaffoldState> _key = new GlobalKey<ScaffoldState>(); if (!_key.currentState.isDrawerOpen) _key.currentState.openDrawer()