Skip to content

Commit d084fb4

Browse files
committed
fix: compact window close
1 parent c200fbb commit d084fb4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/app.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class _AppState extends ConsumerState<App> with WindowListener {
9595

9696
@override
9797
Widget build(BuildContext context) {
98-
return const Dashboard();
98+
return context.isMediumWindow ? const MobileDashboard() : const Dashboard();
9999
}
100100
}
101101

@@ -127,10 +127,10 @@ class DashApp extends ConsumerWidget {
127127
themeMode: isDarkMode ? ThemeMode.dark : ThemeMode.light,
128128
home: Stack(
129129
children: [
130-
context.isMediumWindow
131-
? const MobileDashboard()
132-
: !kIsLinux && !kIsMobile
133-
? const App()
130+
!kIsLinux && !kIsMobile
131+
? const App()
132+
: context.isMediumWindow
133+
? const MobileDashboard()
134134
: const Dashboard(),
135135
if (kIsWindows)
136136
SizedBox(

0 commit comments

Comments
 (0)