mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-01-15 22:59:32 +00:00
chore: run dart format
Some checks are pending
Flutter CI & Release / Test (push) Waiting to run
Flutter CI & Release / Build Android APKs (push) Blocked by required conditions
Flutter CI & Release / build_linux (push) Blocked by required conditions
Flutter CI & Release / Create GitHub Release (push) Blocked by required conditions
Some checks are pending
Flutter CI & Release / Test (push) Waiting to run
Flutter CI & Release / Build Android APKs (push) Blocked by required conditions
Flutter CI & Release / build_linux (push) Blocked by required conditions
Flutter CI & Release / Create GitHub Release (push) Blocked by required conditions
This commit is contained in:
parent
a520136e01
commit
e23c0b6c5f
84 changed files with 1565 additions and 1945 deletions
|
|
@ -33,11 +33,7 @@ void main() async {
|
|||
await configurePlayer();
|
||||
|
||||
// run the app
|
||||
runApp(
|
||||
const ProviderScope(
|
||||
child: _EagerInitialization(child: MyApp()),
|
||||
),
|
||||
);
|
||||
runApp(const ProviderScope(child: _EagerInitialization(child: MyApp())));
|
||||
}
|
||||
|
||||
var routerConfig = const MyAppRouter().config;
|
||||
|
|
@ -65,17 +61,14 @@ class MyApp extends ConsumerWidget {
|
|||
themeSettings.highContrast || MediaQuery.of(context).highContrast;
|
||||
|
||||
if (shouldUseHighContrast) {
|
||||
lightColorScheme = lightColorScheme.copyWith(
|
||||
surface: Colors.white,
|
||||
);
|
||||
darkColorScheme = darkColorScheme.copyWith(
|
||||
surface: Colors.black,
|
||||
);
|
||||
lightColorScheme = lightColorScheme.copyWith(surface: Colors.white);
|
||||
darkColorScheme = darkColorScheme.copyWith(surface: Colors.black);
|
||||
}
|
||||
|
||||
if (themeSettings.useMaterialThemeFromSystem) {
|
||||
var themes =
|
||||
ref.watch(systemThemeProvider(highContrast: shouldUseHighContrast));
|
||||
var themes = ref.watch(
|
||||
systemThemeProvider(highContrast: shouldUseHighContrast),
|
||||
);
|
||||
if (themes.value != null) {
|
||||
lightColorScheme = themes.value!.$1;
|
||||
darkColorScheme = themes.value!.$2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue