mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-09-18 08:56:40 +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 (EquipmentProfiles.selectedOf(context) is PinholeEquipmentProfile) {
|
||||
enabledFeaturesHeight += Dimens.readingContainerSingleValueHeight;
|
||||
enabledFeaturesHeight += Dimens.paddingS;
|
||||
} else if (context.meteringFeature(MeteringScreenLayoutFeature.extremeExposurePairs)) {
|
||||
enabledFeaturesHeight += Dimens.readingContainerDoubleValueHeight;
|
||||
if (context.meteringFeature(MeteringScreenLayoutFeature.extremeExposurePairs)) {
|
||||
if (EquipmentProfiles.selectedOf(context) is PinholeEquipmentProfile) {
|
||||
enabledFeaturesHeight += Dimens.readingContainerSingleValueHeight;
|
||||
} else {
|
||||
enabledFeaturesHeight += Dimens.readingContainerDoubleValueHeight;
|
||||
}
|
||||
|
||||
enabledFeaturesHeight += Dimens.paddingS;
|
||||
}
|
||||
|
||||
|
|
|
@ -65,26 +65,27 @@ class ExposurePairsList extends StatelessWidget {
|
|||
],
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
top: 0,
|
||||
bottom: 0,
|
||||
child: LayoutBuilder(
|
||||
builder: (context, constraints) => Align(
|
||||
alignment: index == 0
|
||||
? Alignment.bottomCenter
|
||||
: (index == exposurePairs.length - 1 ? Alignment.topCenter : Alignment.center),
|
||||
child: SizedBox(
|
||||
height: index == 0 || index == exposurePairs.length - 1
|
||||
? constraints.maxHeight / 2
|
||||
: constraints.maxHeight,
|
||||
child: ColoredBox(
|
||||
color: Theme.of(context).colorScheme.onSurface,
|
||||
child: const SizedBox(width: 1),
|
||||
if (exposurePairs.length > 1)
|
||||
Positioned(
|
||||
top: 0,
|
||||
bottom: 0,
|
||||
child: LayoutBuilder(
|
||||
builder: (context, constraints) => Align(
|
||||
alignment: index == 0
|
||||
? Alignment.bottomCenter
|
||||
: (index == exposurePairs.length - 1 ? Alignment.topCenter : Alignment.center),
|
||||
child: SizedBox(
|
||||
height: index == 0 || index == exposurePairs.length - 1
|
||||
? constraints.maxHeight / 2
|
||||
: constraints.maxHeight,
|
||||
child: ColoredBox(
|
||||
color: Theme.of(context).colorScheme.onSurface,
|
||||
child: const SizedBox(width: 1),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
|
|
|
@ -46,14 +46,14 @@ 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)) ...[
|
||||
ExtremeExposurePairsContainer(
|
||||
fastest: fastest,
|
||||
slowest: slowest,
|
||||
),
|
||||
if (context.meteringFeature(MeteringScreenLayoutFeature.extremeExposurePairs)) ...[
|
||||
if (EquipmentProfiles.selectedOf(context) is PinholeEquipmentProfile)
|
||||
ShutterSpeedContainer(shutterSpeedValue: fastest?.shutterSpeed)
|
||||
else
|
||||
ExtremeExposurePairsContainer(
|
||||
fastest: fastest,
|
||||
slowest: slowest,
|
||||
),
|
||||
const _InnerPadding(),
|
||||
],
|
||||
if (context.meteringFeature(MeteringScreenLayoutFeature.filmPicker)) ...[
|
||||
|
|
Loading…
Reference in a new issue