mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 05:32:26 +08:00
fix: macos startup layout issue
- Only fixes it visually, partially, until the hidden at launch feature is possible somehow.
This commit is contained in:
15
lib/app.dart
15
lib/app.dart
@ -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(
|
||||
|
Reference in New Issue
Block a user