mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 16:00:41 +00:00
save evsource
This commit is contained in:
parent
2dc96e5c17
commit
c110e06650
2 changed files with 20 additions and 22 deletions
|
@ -60,5 +60,6 @@ class EvSourceTypeProviderState extends State<EvSourceTypeProvider> {
|
|||
valueListenable.value = EvSourceType.camera;
|
||||
break;
|
||||
}
|
||||
context.read<UserPreferencesService>().evSourceType = valueListenable.value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,9 +37,7 @@ class _MeteringScreenState extends State<MeteringScreen> {
|
|||
children: [
|
||||
Expanded(
|
||||
child: BlocBuilder<MeteringBloc, MeteringState>(
|
||||
builder: (context, state) => AnimatedSwitcher(
|
||||
duration: Dimens.durationS,
|
||||
child: context.watch<EvSourceType>() == EvSourceType.camera
|
||||
builder: (context, state) => context.watch<EvSourceType>() == EvSourceType.camera
|
||||
? CameraContainerProvider(
|
||||
fastest: state.fastest,
|
||||
slowest: state.slowest,
|
||||
|
@ -60,7 +58,6 @@ class _MeteringScreenState extends State<MeteringScreen> {
|
|||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
MeteringBottomControls(
|
||||
onSwitchEvSourceType: context.read<Environment>().hasLightSensor
|
||||
? EvSourceTypeProvider.of(context).toggleType
|
||||
|
|
Loading…
Reference in a new issue