removed unnecessary loop

This commit is contained in:
Vadim 2024-04-26 22:11:44 +02:00
parent 628ed6274f
commit 5e0f352bfb

View file

@ -174,9 +174,7 @@ class MeteringContainerBuidler extends StatelessWidget {
if (itemsCount <= 0) {
itemsCount = apertureValues.length;
} else {
while (apertureValues[itemsCount - 1 + apertureOffset] != apertureValues.last) {
itemsCount += 1;
}
itemsCount += (apertureValues.length - 1) - (itemsCount - 1 + apertureOffset);
}
final exposurePairs = List.generate(