allow to hide pinhole shutter speed

This commit is contained in:
Vadim 2025-09-08 17:09:26 +02:00
parent c40354c62b
commit 56ab8aa85a
3 changed files with 32 additions and 29 deletions

View file

@ -126,11 +126,13 @@ class CameraContainer extends StatelessWidget {
enabledFeaturesHeight += Dimens.readingContainerSingleValueHeight;
enabledFeaturesHeight += Dimens.paddingS;
}
if (context.meteringFeature(MeteringScreenLayoutFeature.extremeExposurePairs)) {
if (EquipmentProfiles.selectedOf(context) is PinholeEquipmentProfile) {
enabledFeaturesHeight += Dimens.readingContainerSingleValueHeight;
enabledFeaturesHeight += Dimens.paddingS;
} else if (context.meteringFeature(MeteringScreenLayoutFeature.extremeExposurePairs)) {
} else {
enabledFeaturesHeight += Dimens.readingContainerDoubleValueHeight;
}
enabledFeaturesHeight += Dimens.paddingS;
}

View file

@ -65,6 +65,7 @@ class ExposurePairsList extends StatelessWidget {
],
),
),
if (exposurePairs.length > 1)
Positioned(
top: 0,
bottom: 0,

View file

@ -46,10 +46,10 @@ class ReadingsContainer extends StatelessWidget {
const EquipmentProfilePicker(),
const _InnerPadding(),
],
if (EquipmentProfiles.selectedOf(context) is PinholeEquipmentProfile) ...[
ShutterSpeedContainer(shutterSpeedValue: fastest?.shutterSpeed),
const _InnerPadding(),
] else if (context.meteringFeature(MeteringScreenLayoutFeature.extremeExposurePairs)) ...[
if (context.meteringFeature(MeteringScreenLayoutFeature.extremeExposurePairs)) ...[
if (EquipmentProfiles.selectedOf(context) is PinholeEquipmentProfile)
ShutterSpeedContainer(shutterSpeedValue: fastest?.shutterSpeed)
else
ExtremeExposurePairsContainer(
fastest: fastest,
slowest: slowest,