mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 15:30:59 +00:00
animated EquipmentProfileContainer
This commit is contained in:
parent
2e9d49eb06
commit
a12c9b8558
2 changed files with 31 additions and 24 deletions
|
@ -104,29 +104,36 @@ class EquipmentProfileContainerState extends State<EquipmentProfileContainer> {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
if (_expanded)
|
AnimatedSize(
|
||||||
EquipmentListTiles(
|
alignment: Alignment.topCenter,
|
||||||
selectedApertureValues: _equipmentProfileData.apertureValues,
|
duration: Dimens.durationM,
|
||||||
selectedIsoValues: _equipmentProfileData.isoValues,
|
child: _expanded
|
||||||
selectedNdValues: _equipmentProfileData.ndValues,
|
? EquipmentListTiles(
|
||||||
selectedShutterSpeedValues: _equipmentProfileData.shutterSpeedValues,
|
selectedApertureValues: _equipmentProfileData.apertureValues,
|
||||||
onApertureValuesSelected: (value) {
|
selectedIsoValues: _equipmentProfileData.isoValues,
|
||||||
_equipmentProfileData = _equipmentProfileData.copyWith(apertureValues: value);
|
selectedNdValues: _equipmentProfileData.ndValues,
|
||||||
widget.onUpdate(_equipmentProfileData);
|
selectedShutterSpeedValues: _equipmentProfileData.shutterSpeedValues,
|
||||||
},
|
onApertureValuesSelected: (value) {
|
||||||
onIsoValuesSelecred: (value) {
|
_equipmentProfileData =
|
||||||
_equipmentProfileData = _equipmentProfileData.copyWith(isoValues: value);
|
_equipmentProfileData.copyWith(apertureValues: value);
|
||||||
widget.onUpdate(_equipmentProfileData);
|
widget.onUpdate(_equipmentProfileData);
|
||||||
},
|
},
|
||||||
onNdValuesSelected: (value) {
|
onIsoValuesSelecred: (value) {
|
||||||
_equipmentProfileData = _equipmentProfileData.copyWith(ndValues: value);
|
_equipmentProfileData = _equipmentProfileData.copyWith(isoValues: value);
|
||||||
widget.onUpdate(_equipmentProfileData);
|
widget.onUpdate(_equipmentProfileData);
|
||||||
},
|
},
|
||||||
onShutterSpeedValuesSelected: (value) {
|
onNdValuesSelected: (value) {
|
||||||
_equipmentProfileData = _equipmentProfileData.copyWith(shutterSpeedValues: value);
|
_equipmentProfileData = _equipmentProfileData.copyWith(ndValues: value);
|
||||||
widget.onUpdate(_equipmentProfileData);
|
widget.onUpdate(_equipmentProfileData);
|
||||||
},
|
},
|
||||||
),
|
onShutterSpeedValuesSelected: (value) {
|
||||||
|
_equipmentProfileData =
|
||||||
|
_equipmentProfileData.copyWith(shutterSpeedValues: value);
|
||||||
|
widget.onUpdate(_equipmentProfileData);
|
||||||
|
},
|
||||||
|
)
|
||||||
|
: Row(mainAxisSize: MainAxisSize.max),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -14,7 +14,7 @@ class EquipmentProfilesListTile extends StatelessWidget {
|
||||||
title: Text(S.of(context).equipmentProfiles),
|
title: Text(S.of(context).equipmentProfiles),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.of(context).push<EquipmentProfileData>(
|
Navigator.of(context).push<EquipmentProfileData>(
|
||||||
MaterialPageRoute(builder: (_) => const EquipmentProfileScreen()));
|
MaterialPageRoute(builder: (_) => const EquipmentProfilesScreen()));
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue