mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-05-20 07:00:41 +00:00
Fixed MeteringScreenLayoutConfig
updates
This commit is contained in:
parent
4ea9288741
commit
fe4d1dfb58
1 changed files with 2 additions and 8 deletions
|
@ -75,7 +75,7 @@ class _UserPreferencesProviderState extends State<UserPreferencesProvider>
|
|||
|
||||
late bool dynamicColor = userPreferencesService.dynamicColor;
|
||||
late EvSourceType evSourceType;
|
||||
late final MeteringScreenLayoutConfig meteringScreenLayout =
|
||||
late MeteringScreenLayoutConfig meteringScreenLayout =
|
||||
ServicesProvider.of(context).userPreferencesService.meteringScreenLayout;
|
||||
late Color primaryColor = userPreferencesService.primaryColor;
|
||||
late StopType stopType = userPreferencesService.stopType;
|
||||
|
@ -174,13 +174,7 @@ class _UserPreferencesProviderState extends State<UserPreferencesProvider>
|
|||
|
||||
void setMeteringScreenLayout(MeteringScreenLayoutConfig config) {
|
||||
setState(() {
|
||||
config.forEach((key, value) {
|
||||
meteringScreenLayout.update(
|
||||
key,
|
||||
(_) => value,
|
||||
ifAbsent: () => value,
|
||||
);
|
||||
});
|
||||
meteringScreenLayout = config;
|
||||
});
|
||||
ServicesProvider.of(context).userPreferencesService.meteringScreenLayout = meteringScreenLayout;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue