Closed VaibhavKukreti-Kathud closed 2 years ago
As I understand, you want to have something like a menu icon in the app bar that would open the drawer on tap? If so, you need to:
Get a key inside your widget:
final _innerDrawerKey = GlobalKey<InnerDrawerState>();
Provide the key to your drawer:
InnerDrawer(
key: _innerDrawerKey,
rightChild: ...,
scaffold: ...,
);
And in onPressed:
onPressed: () {
_innerDrawerKey.currentState.toggle();
// or _innerDrawerKey.currentState.open();
},
@VaibhavKukreti-Kathud ping 😀
Oh sorry didn't reply for a long time thanks for the reply :)
#