mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 16:00:41 +00:00
migrated to the latest material utils
This commit is contained in:
parent
e0deb44af0
commit
61fc90cecb
5 changed files with 9 additions and 2 deletions
|
@ -73,7 +73,11 @@ ThemeData themeFrom(Color primaryColor, Brightness brightness) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ColorScheme _colorSchemeFromColor(Color primaryColor, Brightness brightness) {
|
ColorScheme _colorSchemeFromColor(Color primaryColor, Brightness brightness) {
|
||||||
final scheme = brightness == Brightness.light ? Scheme.light(primaryColor.value) : Scheme.dark(primaryColor.value);
|
final scheme = SchemeTonalSpot(
|
||||||
|
sourceColorHct: Hct.fromInt(primaryColor.value),
|
||||||
|
isDark: brightness == Brightness.dark,
|
||||||
|
contrastLevel: 0.0,
|
||||||
|
);
|
||||||
|
|
||||||
return ColorScheme(
|
return ColorScheme(
|
||||||
brightness: brightness,
|
brightness: brightness,
|
||||||
|
|
|
@ -12,7 +12,7 @@ dependencies:
|
||||||
camera: 0.10.5+2
|
camera: 0.10.5+2
|
||||||
camera_android_camerax: 0.6.1+1
|
camera_android_camerax: 0.6.1+1
|
||||||
clipboard: 0.1.3
|
clipboard: 0.1.3
|
||||||
dynamic_color: 1.6.6
|
dynamic_color: 1.7.0
|
||||||
exif: 3.1.4
|
exif: 3.1.4
|
||||||
firebase_analytics: 10.6.2
|
firebase_analytics: 10.6.2
|
||||||
firebase_core: 2.20.0
|
firebase_core: 2.20.0
|
||||||
|
@ -58,6 +58,9 @@ dev_dependencies:
|
||||||
mocktail: 0.3.0
|
mocktail: 0.3.0
|
||||||
test: 1.24.3
|
test: 1.24.3
|
||||||
|
|
||||||
|
dependency_overrides:
|
||||||
|
material_color_utilities: 0.11.1
|
||||||
|
|
||||||
flutter:
|
flutter:
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
assets:
|
assets:
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.6 MiB |
Binary file not shown.
Before Width: | Height: | Size: 501 KiB After Width: | Height: | Size: 500 KiB |
Binary file not shown.
Before Width: | Height: | Size: 872 KiB After Width: | Height: | Size: 865 KiB |
Loading…
Reference in a new issue