fix: macos startup layout issue

- Only fixes it visually, partially, until the hidden at launch feature is possible somehow.
This commit is contained in:
damywise
2023-12-09 23:23:06 +07:00
parent 5ea07b6c50
commit 8a15170d0e
2 changed files with 17 additions and 2 deletions

View File

@ -69,6 +69,21 @@ class _DashAppState extends ConsumerState<DashApp> {
ref.watch(settingsProvider.select((value) => value.isDark));
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
fontFamily: kFontFamily,
fontFamilyFallback: kFontFamilyFallback,
colorSchemeSeed: kColorSchemeSeed,
useMaterial3: true,
brightness: Brightness.light,
),
darkTheme: ThemeData(
fontFamily: kFontFamily,
fontFamilyFallback: kFontFamilyFallback,
colorSchemeSeed: kColorSchemeSeed,
useMaterial3: true,
brightness: Brightness.dark,
),
themeMode: isDarkMode ? ThemeMode.dark : ThemeMode.light,
home: Stack(
children: [
MaterialApp(