mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 23:10:40 +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)
|
||||
EquipmentListTiles(
|
||||
selectedApertureValues: _equipmentProfileData.apertureValues,
|
||||
selectedIsoValues: _equipmentProfileData.isoValues,
|
||||
selectedNdValues: _equipmentProfileData.ndValues,
|
||||
selectedShutterSpeedValues: _equipmentProfileData.shutterSpeedValues,
|
||||
onApertureValuesSelected: (value) {
|
||||
_equipmentProfileData = _equipmentProfileData.copyWith(apertureValues: value);
|
||||
widget.onUpdate(_equipmentProfileData);
|
||||
},
|
||||
onIsoValuesSelecred: (value) {
|
||||
_equipmentProfileData = _equipmentProfileData.copyWith(isoValues: value);
|
||||
widget.onUpdate(_equipmentProfileData);
|
||||
},
|
||||
onNdValuesSelected: (value) {
|
||||
_equipmentProfileData = _equipmentProfileData.copyWith(ndValues: value);
|
||||
widget.onUpdate(_equipmentProfileData);
|
||||
},
|
||||
onShutterSpeedValuesSelected: (value) {
|
||||
_equipmentProfileData = _equipmentProfileData.copyWith(shutterSpeedValues: value);
|
||||
widget.onUpdate(_equipmentProfileData);
|
||||
},
|
||||
),
|
||||
AnimatedSize(
|
||||
alignment: Alignment.topCenter,
|
||||
duration: Dimens.durationM,
|
||||
child: _expanded
|
||||
? EquipmentListTiles(
|
||||
selectedApertureValues: _equipmentProfileData.apertureValues,
|
||||
selectedIsoValues: _equipmentProfileData.isoValues,
|
||||
selectedNdValues: _equipmentProfileData.ndValues,
|
||||
selectedShutterSpeedValues: _equipmentProfileData.shutterSpeedValues,
|
||||
onApertureValuesSelected: (value) {
|
||||
_equipmentProfileData =
|
||||
_equipmentProfileData.copyWith(apertureValues: value);
|
||||
widget.onUpdate(_equipmentProfileData);
|
||||
},
|
||||
onIsoValuesSelecred: (value) {
|
||||
_equipmentProfileData = _equipmentProfileData.copyWith(isoValues: value);
|
||||
widget.onUpdate(_equipmentProfileData);
|
||||
},
|
||||
onNdValuesSelected: (value) {
|
||||
_equipmentProfileData = _equipmentProfileData.copyWith(ndValues: value);
|
||||
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),
|
||||
onTap: () {
|
||||
Navigator.of(context).push<EquipmentProfileData>(
|
||||
MaterialPageRoute(builder: (_) => const EquipmentProfileScreen()));
|
||||
MaterialPageRoute(builder: (_) => const EquipmentProfilesScreen()));
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue