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.readingContainerSingleValueHeight;
enabledFeaturesHeight += Dimens.paddingS; enabledFeaturesHeight += Dimens.paddingS;
} }
if (context.meteringFeature(MeteringScreenLayoutFeature.extremeExposurePairs)) {
if (EquipmentProfiles.selectedOf(context) is PinholeEquipmentProfile) { if (EquipmentProfiles.selectedOf(context) is PinholeEquipmentProfile) {
enabledFeaturesHeight += Dimens.readingContainerSingleValueHeight; enabledFeaturesHeight += Dimens.readingContainerSingleValueHeight;
enabledFeaturesHeight += Dimens.paddingS; } else {
} else if (context.meteringFeature(MeteringScreenLayoutFeature.extremeExposurePairs)) {
enabledFeaturesHeight += Dimens.readingContainerDoubleValueHeight; enabledFeaturesHeight += Dimens.readingContainerDoubleValueHeight;
}
enabledFeaturesHeight += Dimens.paddingS; enabledFeaturesHeight += Dimens.paddingS;
} }

View file

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

View file

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