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;
|
valueListenable.value = EvSourceType.camera;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
context.read<UserPreferencesService>().evSourceType = valueListenable.value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,28 +37,25 @@ class _MeteringScreenState extends State<MeteringScreen> {
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: BlocBuilder<MeteringBloc, MeteringState>(
|
child: BlocBuilder<MeteringBloc, MeteringState>(
|
||||||
builder: (context, state) => AnimatedSwitcher(
|
builder: (context, state) => context.watch<EvSourceType>() == EvSourceType.camera
|
||||||
duration: Dimens.durationS,
|
? CameraContainerProvider(
|
||||||
child: context.watch<EvSourceType>() == EvSourceType.camera
|
fastest: state.fastest,
|
||||||
? CameraContainerProvider(
|
slowest: state.slowest,
|
||||||
fastest: state.fastest,
|
iso: state.iso,
|
||||||
slowest: state.slowest,
|
nd: state.nd,
|
||||||
iso: state.iso,
|
onIsoChanged: (value) => _bloc.add(IsoChangedEvent(value)),
|
||||||
nd: state.nd,
|
onNdChanged: (value) => _bloc.add(NdChangedEvent(value)),
|
||||||
onIsoChanged: (value) => _bloc.add(IsoChangedEvent(value)),
|
exposurePairs: state.exposurePairs,
|
||||||
onNdChanged: (value) => _bloc.add(NdChangedEvent(value)),
|
)
|
||||||
exposurePairs: state.exposurePairs,
|
: LightSensorContainerProvider(
|
||||||
)
|
fastest: state.fastest,
|
||||||
: LightSensorContainerProvider(
|
slowest: state.slowest,
|
||||||
fastest: state.fastest,
|
iso: state.iso,
|
||||||
slowest: state.slowest,
|
nd: state.nd,
|
||||||
iso: state.iso,
|
onIsoChanged: (value) => _bloc.add(IsoChangedEvent(value)),
|
||||||
nd: state.nd,
|
onNdChanged: (value) => _bloc.add(NdChangedEvent(value)),
|
||||||
onIsoChanged: (value) => _bloc.add(IsoChangedEvent(value)),
|
exposurePairs: state.exposurePairs,
|
||||||
onNdChanged: (value) => _bloc.add(NdChangedEvent(value)),
|
),
|
||||||
exposurePairs: state.exposurePairs,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
MeteringBottomControls(
|
MeteringBottomControls(
|
||||||
|
|
Loading…
Reference in a new issue