mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-09-18 10:46:39 +00:00
allow to hide pinhole shutter speed
This commit is contained in:
parent
c40354c62b
commit
56ab8aa85a
3 changed files with 32 additions and 29 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@ class ExposurePairsList extends StatelessWidget {
|
|||
],
|
||||
),
|
||||
),
|
||||
if (exposurePairs.length > 1)
|
||||
Positioned(
|
||||
top: 0,
|
||||
bottom: 0,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue