mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 00:40:39 +00:00
FVM fix
This commit is contained in:
parent
42fe5d45bc
commit
179008ff77
2 changed files with 18 additions and 8 deletions
12
.vscode/settings.json
vendored
12
.vscode/settings.json
vendored
|
@ -1,8 +1,12 @@
|
||||||
{
|
{
|
||||||
"task.slowProviderWarning": true,
|
"task.slowProviderWarning": true,
|
||||||
"dart.flutterSdkPaths": [
|
"dart.flutterSdkPath": "fvm",
|
||||||
"fvm"
|
"search.exclude": {
|
||||||
],
|
"**/.fvm": true
|
||||||
|
},
|
||||||
|
"files.watcherExclude": {
|
||||||
|
"**/.fvm": true
|
||||||
|
},
|
||||||
"dart.lineLength": 100,
|
"dart.lineLength": 100,
|
||||||
"[dart]": {
|
"[dart]": {
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
|
@ -20,5 +24,5 @@
|
||||||
"dart.doNotFormat": [
|
"dart.doNotFormat": [
|
||||||
"**/generated/**",
|
"**/generated/**",
|
||||||
"lib/data/**"
|
"lib/data/**"
|
||||||
]
|
],
|
||||||
}
|
}
|
|
@ -159,6 +159,7 @@ class _ThemeDataProvider extends StatelessWidget {
|
||||||
final scheme = brightness == Brightness.light
|
final scheme = brightness == Brightness.light
|
||||||
? Scheme.light(primaryColor.value)
|
? Scheme.light(primaryColor.value)
|
||||||
: Scheme.dark(primaryColor.value);
|
: Scheme.dark(primaryColor.value);
|
||||||
|
|
||||||
return ColorScheme(
|
return ColorScheme(
|
||||||
brightness: brightness,
|
brightness: brightness,
|
||||||
primary: Color(scheme.primary),
|
primary: Color(scheme.primary),
|
||||||
|
@ -171,10 +172,15 @@ class _ThemeDataProvider extends StatelessWidget {
|
||||||
onError: Color(scheme.onError),
|
onError: Color(scheme.onError),
|
||||||
background: Color(scheme.background),
|
background: Color(scheme.background),
|
||||||
onBackground: Color(scheme.onBackground),
|
onBackground: Color(scheme.onBackground),
|
||||||
surface: Color.alphaBlend(Color(scheme.primary).withOpacity(0.05), Color(scheme.background)),
|
surface: Color.alphaBlend(
|
||||||
|
Color(scheme.primary).withOpacity(0.05),
|
||||||
|
Color(scheme.background),
|
||||||
|
),
|
||||||
onSurface: Color(scheme.onSurface),
|
onSurface: Color(scheme.onSurface),
|
||||||
surfaceVariant:
|
surfaceVariant: Color.alphaBlend(
|
||||||
Color.alphaBlend(Color(scheme.primary).withOpacity(0.5), Color(scheme.background)),
|
Color(scheme.primary).withOpacity(0.5),
|
||||||
|
Color(scheme.background),
|
||||||
|
),
|
||||||
onSurfaceVariant: Color(scheme.onSurfaceVariant),
|
onSurfaceVariant: Color(scheme.onSurfaceVariant),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue