feat: large mobile device responsiveness

This commit is contained in:
DenserMeerkat
2024-05-11 22:12:25 +05:30
parent 80c32fc290
commit 5ef37914b3
13 changed files with 266 additions and 117 deletions

View File

@ -105,6 +105,8 @@ class DashApp extends ConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
final isDarkMode =
ref.watch(settingsProvider.select((value) => value.isDark));
final isLargeMobile =
MediaQuery.of(context).size.width > kMinWindowSize.width;
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
@ -125,7 +127,9 @@ class DashApp extends ConsumerWidget {
),
themeMode: isDarkMode ? ThemeMode.dark : ThemeMode.light,
home: kIsMobile
? const MobileDashboard()
? isLargeMobile
? const Dashboard()
: const MobileDashboard()
: Stack(
children: [
kIsLinux ? const Dashboard() : const App(),