mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-01-14 06:09: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
|
|
@ -53,22 +53,15 @@ FutureOr<(ColorScheme light, ColorScheme dark)?> systemTheme(
|
|||
}
|
||||
|
||||
if (schemeLight == null || schemeDark == null) {
|
||||
_logger
|
||||
.warning('dynamic_color: Dynamic color not detected on this device.');
|
||||
_logger.warning(
|
||||
'dynamic_color: Dynamic color not detected on this device.',
|
||||
);
|
||||
return null;
|
||||
}
|
||||
// set high contrast theme
|
||||
if (highContrast) {
|
||||
schemeLight = schemeLight
|
||||
.copyWith(
|
||||
surface: Colors.white,
|
||||
)
|
||||
.harmonized();
|
||||
schemeDark = schemeDark
|
||||
.copyWith(
|
||||
surface: Colors.black,
|
||||
)
|
||||
.harmonized();
|
||||
schemeLight = schemeLight.copyWith(surface: Colors.white).harmonized();
|
||||
schemeDark = schemeDark.copyWith(surface: Colors.black).harmonized();
|
||||
}
|
||||
return (schemeLight, schemeDark);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue