diff --git a/lib/src/side_menu.dart b/lib/src/side_menu.dart index 9df0a93..a114d53 100644 --- a/lib/src/side_menu.dart +++ b/lib/src/side_menu.dart @@ -348,10 +348,7 @@ class _SideMenuState extends State { @override void dispose() { - Future.delayed(Duration.zero, () { - widget.global.displayModeState - .change(widget.global.displayModeState.value); - }); + widget.global.displayModeState.change(widget.global.displayModeState.value); super.dispose(); } }