mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
#156 opt.: show error of settings json
This commit is contained in:
10
lib/app.dart
10
lib/app.dart
@@ -33,6 +33,14 @@ class MyApp extends StatelessWidget {
|
||||
useMaterial3: true,
|
||||
brightness: Brightness.dark,
|
||||
colorSchemeSeed: primaryColor,
|
||||
|
||||
/// After upgrading to flutter 3.13,
|
||||
/// the shadow color of the drawer is white (maybe a bug).
|
||||
/// TODO: remember to remove it after the bug is fixed.
|
||||
drawerTheme: const DrawerThemeData(
|
||||
backgroundColor: Colors.black,
|
||||
shadowColor: Colors.black12,
|
||||
),
|
||||
);
|
||||
|
||||
return MaterialApp(
|
||||
@@ -57,8 +65,6 @@ class MyApp extends StatelessWidget {
|
||||
ThemeData _getAmoledTheme(ThemeData darkTheme) => darkTheme.copyWith(
|
||||
scaffoldBackgroundColor: Colors.black,
|
||||
dialogBackgroundColor: Colors.black,
|
||||
drawerTheme: const DrawerThemeData(
|
||||
backgroundColor: Colors.black, shadowColor: Colors.black),
|
||||
appBarTheme: const AppBarTheme(backgroundColor: Colors.black),
|
||||
dialogTheme: const DialogTheme(backgroundColor: Colors.black),
|
||||
bottomSheetTheme:
|
||||
|
||||
Reference in New Issue
Block a user