|
|
|
@ -18,12 +18,16 @@ class MyApp extends StatelessWidget { |
|
|
|
|
primarySwatch: Colors.blue, |
|
|
|
|
visualDensity: VisualDensity.adaptivePlatformDensity, |
|
|
|
|
useMaterial3: true, |
|
|
|
|
brightness: Brightness.light, |
|
|
|
|
), |
|
|
|
|
// darkTheme: ThemeData( |
|
|
|
|
// primarySwatch: Colors.blue, |
|
|
|
|
// visualDensity: VisualDensity.adaptivePlatformDensity, |
|
|
|
|
// useMaterial3: true, |
|
|
|
|
// ), |
|
|
|
|
darkTheme: ThemeData( |
|
|
|
|
primarySwatch: Colors.blue, |
|
|
|
|
visualDensity: VisualDensity.adaptivePlatformDensity, |
|
|
|
|
useMaterial3: true, |
|
|
|
|
brightness: Brightness.dark, |
|
|
|
|
), |
|
|
|
|
// ignore: avoid_redundant_argument_values |
|
|
|
|
themeMode: ThemeMode.system, |
|
|
|
|
localizationsDelegates: [ |
|
|
|
|
GlobalMaterialLocalizations.delegate, |
|
|
|
|
GlobalWidgetsLocalizations.delegate, |
|
|
|
|