🐛 Fix app drawer did not close after selected
This commit is contained in:
parent
3585941ccb
commit
55a7e7d900
@ -87,6 +87,7 @@ class _AppNavigationDrawerState extends State<AppNavigationDrawer> {
|
|||||||
onTap: () {
|
onTap: () {
|
||||||
GoRouter.of(context).pushNamed(ele.screen);
|
GoRouter.of(context).pushNamed(ele.screen);
|
||||||
nav.setIndex(idx);
|
nav.setIndex(idx);
|
||||||
|
Scaffold.of(context).closeDrawer();
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user