potentioal fix for crash in some windows
This commit is contained in:
@@ -112,7 +112,7 @@ class _CustomAdaptiveScaffold extends HookConsumerWidget {
|
|||||||
key: RootScaffold.stateKey,
|
key: RootScaffold.stateKey,
|
||||||
drawer: Breakpoints.small.isActive(context)
|
drawer: Breakpoints.small.isActive(context)
|
||||||
? Drawer(
|
? Drawer(
|
||||||
width: (MediaQuery.sizeOf(context).width * 0.88).clamp(0, 304),
|
width: (MediaQuery.sizeOf(context).width * 0.88).clamp(1, 304),
|
||||||
child: NavigationRail(
|
child: NavigationRail(
|
||||||
extended: true,
|
extended: true,
|
||||||
selectedIndex: selectedWithOffset(drawerDestinationRange),
|
selectedIndex: selectedWithOffset(drawerDestinationRange),
|
||||||
|
|||||||
Reference in New Issue
Block a user