This commit is contained in:
Vadim 2023-07-18 15:24:23 +02:00
parent df81e13a63
commit f228cb9df4

View file

@ -168,8 +168,8 @@ class MeteringContainerBuidler extends StatelessWidget {
/// Depending on the `stopType` the exposure pairs list length is multiplied by 1,2 or 3 /// Depending on the `stopType` the exposure pairs list length is multiplied by 1,2 or 3
final int evSteps = (ev * (stopType.index + 1)).round(); final int evSteps = (ev * (stopType.index + 1)).round();
final apertureValues = ApertureValue.whereStopType(stopType); final apertureValues = ApertureValue.values.whereStopType(stopType);
final shutterSpeedValues = ShutterSpeedValue.whereStopType(stopType); final shutterSpeedValues = ShutterSpeedValue.values.whereStopType(stopType);
/// Basically we use 1" shutter speed as an anchor point for building the exposure pairs list. /// Basically we use 1" shutter speed as an anchor point for building the exposure pairs list.
/// But user can exclude this value from the list using custom equipment profile. /// But user can exclude this value from the list using custom equipment profile.
@ -177,7 +177,7 @@ class MeteringContainerBuidler extends StatelessWidget {
const anchorShutterSpeed = ShutterSpeedValue(1, false, StopType.full); const anchorShutterSpeed = ShutterSpeedValue(1, false, StopType.full);
int anchorIndex = shutterSpeedValues.indexOf(anchorShutterSpeed); int anchorIndex = shutterSpeedValues.indexOf(anchorShutterSpeed);
if (anchorIndex < 0) { if (anchorIndex < 0) {
final filteredFullList = ShutterSpeedValue.whereStopType(stopType); final filteredFullList = ShutterSpeedValue.values.whereStopType(stopType);
final customListStartIndex = filteredFullList.indexOf(shutterSpeedValues.first); final customListStartIndex = filteredFullList.indexOf(shutterSpeedValues.first);
final fullListAnchor = filteredFullList.indexOf(anchorShutterSpeed); final fullListAnchor = filteredFullList.indexOf(anchorShutterSpeed);
if (customListStartIndex < fullListAnchor) { if (customListStartIndex < fullListAnchor) {