We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c200fbb commit d084fb4Copy full SHA for d084fb4
lib/app.dart
@@ -95,7 +95,7 @@ class _AppState extends ConsumerState<App> with WindowListener {
95
96
@override
97
Widget build(BuildContext context) {
98
- return const Dashboard();
+ return context.isMediumWindow ? const MobileDashboard() : const Dashboard();
99
}
100
101
@@ -127,10 +127,10 @@ class DashApp extends ConsumerWidget {
127
themeMode: isDarkMode ? ThemeMode.dark : ThemeMode.light,
128
home: Stack(
129
children: [
130
- context.isMediumWindow
131
- ? const MobileDashboard()
132
- : !kIsLinux && !kIsMobile
133
- ? const App()
+ !kIsLinux && !kIsMobile
+ ? const App()
+ : context.isMediumWindow
+ ? const MobileDashboard()
134
: const Dashboard(),
135
if (kIsWindows)
136
SizedBox(
0 commit comments