diff --git a/lib/screens/metering/components/shared/exposure_pairs_list/widget_list_exposure_pairs.dart b/lib/screens/metering/components/shared/exposure_pairs_list/widget_list_exposure_pairs.dart index 3f33d03..4051c5e 100644 --- a/lib/screens/metering/components/shared/exposure_pairs_list/widget_list_exposure_pairs.dart +++ b/lib/screens/metering/components/shared/exposure_pairs_list/widget_list_exposure_pairs.dart @@ -5,6 +5,7 @@ import 'package:lightmeter/res/dimens.dart'; import 'package:lightmeter/screens/metering/components/shared/exposure_pairs_list/components/exposure_pairs_list_item/widget_item_list_exposure_pairs.dart'; import 'package:lightmeter/screens/shared/icon_placeholder/widget_icon_placeholder.dart'; +import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart'; class ExposurePairsList extends StatelessWidget { final List exposurePairs; @@ -47,7 +48,8 @@ class ExposurePairsList extends StatelessWidget { child: Align( alignment: Alignment.centerLeft, child: ExposurePairsListItem( - exposurePairs[index].shutterSpeed, + Films.selectedOf(context) + .reciprocityFailure(exposurePairs[index].shutterSpeed), tickOnTheLeft: true, ), ), diff --git a/lib/screens/metering/screen_metering.dart b/lib/screens/metering/screen_metering.dart index 81cca54..f1d11fb 100644 --- a/lib/screens/metering/screen_metering.dart +++ b/lib/screens/metering/screen_metering.dart @@ -108,7 +108,6 @@ class MeteringContainerBuidler extends StatelessWidget { ev!, UserPreferencesProvider.stopTypeOf(context), EquipmentProfiles.selectedOf(context), - Films.selectedOf(context), ) : []; final fastest = exposurePairs.isNotEmpty ? exposurePairs.first : null; @@ -140,7 +139,6 @@ class MeteringContainerBuidler extends StatelessWidget { double ev, StopType stopType, EquipmentProfile equipmentProfile, - Film film, ) { if (ev.isNaN || ev.isInfinite) { return List.empty(); @@ -183,7 +181,7 @@ class MeteringContainerBuidler extends StatelessWidget { itemsCount, (index) => ExposurePair( apertureValues[index + apertureOffset], - film.reciprocityFailure(shutterSpeedValues[index + shutterSpeedOffset]), + shutterSpeedValues[index + shutterSpeedOffset], ), growable: false, ); diff --git a/test/screens/metering/screen_metering_test.dart b/test/screens/metering/screen_metering_test.dart index f282275..ffcca8d 100644 --- a/test/screens/metering/screen_metering_test.dart +++ b/test/screens/metering/screen_metering_test.dart @@ -18,7 +18,6 @@ void main() { ev, StopType.full, defaultEquipmentProfile, - const Film.other(), ); test('isNan', () { @@ -41,7 +40,6 @@ void main() { ev, StopType.full, defaultEquipmentProfile, - const Film.other(), ); test('EV 1', () { @@ -141,7 +139,6 @@ void main() { ev, StopType.half, defaultEquipmentProfile, - const Film.other(), ); test('EV 1', () { @@ -241,7 +238,6 @@ void main() { ev, StopType.third, defaultEquipmentProfile, - const Film.other(), ); test('EV 1', () { @@ -355,7 +351,6 @@ void main() { ev, StopType.full, equipmentProfile, - const Film.other(), ); test('EV 1', () { @@ -455,7 +450,6 @@ void main() { ev, StopType.half, equipmentProfile, - const Film.other(), ); test('EV 1', () { @@ -555,7 +549,6 @@ void main() { ev, StopType.third, equipmentProfile, - const Film.other(), ); test('EV 1', () { @@ -668,7 +661,6 @@ void main() { ev, StopType.full, equipmentProfile, - const Film.other(), ); test('EV 1', () { @@ -768,7 +760,6 @@ void main() { ev, StopType.half, equipmentProfile, - const Film.other(), ); test('EV 1', () { @@ -868,7 +859,6 @@ void main() { ev, StopType.third, equipmentProfile, - const Film.other(), ); test('EV 1', () {