removed film from exposure pairs building

This commit is contained in:
Vadim 2023-09-13 17:03:46 +02:00
parent 0eb6e7cc16
commit 0d530b240b
3 changed files with 4 additions and 14 deletions

View file

@ -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/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:lightmeter/screens/shared/icon_placeholder/widget_icon_placeholder.dart';
import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart';
class ExposurePairsList extends StatelessWidget { class ExposurePairsList extends StatelessWidget {
final List<ExposurePair> exposurePairs; final List<ExposurePair> exposurePairs;
@ -47,7 +48,8 @@ class ExposurePairsList extends StatelessWidget {
child: Align( child: Align(
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
child: ExposurePairsListItem( child: ExposurePairsListItem(
exposurePairs[index].shutterSpeed, Films.selectedOf(context)
.reciprocityFailure(exposurePairs[index].shutterSpeed),
tickOnTheLeft: true, tickOnTheLeft: true,
), ),
), ),

View file

@ -108,7 +108,6 @@ class MeteringContainerBuidler extends StatelessWidget {
ev!, ev!,
UserPreferencesProvider.stopTypeOf(context), UserPreferencesProvider.stopTypeOf(context),
EquipmentProfiles.selectedOf(context), EquipmentProfiles.selectedOf(context),
Films.selectedOf(context),
) )
: <ExposurePair>[]; : <ExposurePair>[];
final fastest = exposurePairs.isNotEmpty ? exposurePairs.first : null; final fastest = exposurePairs.isNotEmpty ? exposurePairs.first : null;
@ -140,7 +139,6 @@ class MeteringContainerBuidler extends StatelessWidget {
double ev, double ev,
StopType stopType, StopType stopType,
EquipmentProfile equipmentProfile, EquipmentProfile equipmentProfile,
Film film,
) { ) {
if (ev.isNaN || ev.isInfinite) { if (ev.isNaN || ev.isInfinite) {
return List.empty(); return List.empty();
@ -183,7 +181,7 @@ class MeteringContainerBuidler extends StatelessWidget {
itemsCount, itemsCount,
(index) => ExposurePair( (index) => ExposurePair(
apertureValues[index + apertureOffset], apertureValues[index + apertureOffset],
film.reciprocityFailure(shutterSpeedValues[index + shutterSpeedOffset]), shutterSpeedValues[index + shutterSpeedOffset],
), ),
growable: false, growable: false,
); );

View file

@ -18,7 +18,6 @@ void main() {
ev, ev,
StopType.full, StopType.full,
defaultEquipmentProfile, defaultEquipmentProfile,
const Film.other(),
); );
test('isNan', () { test('isNan', () {
@ -41,7 +40,6 @@ void main() {
ev, ev,
StopType.full, StopType.full,
defaultEquipmentProfile, defaultEquipmentProfile,
const Film.other(),
); );
test('EV 1', () { test('EV 1', () {
@ -141,7 +139,6 @@ void main() {
ev, ev,
StopType.half, StopType.half,
defaultEquipmentProfile, defaultEquipmentProfile,
const Film.other(),
); );
test('EV 1', () { test('EV 1', () {
@ -241,7 +238,6 @@ void main() {
ev, ev,
StopType.third, StopType.third,
defaultEquipmentProfile, defaultEquipmentProfile,
const Film.other(),
); );
test('EV 1', () { test('EV 1', () {
@ -355,7 +351,6 @@ void main() {
ev, ev,
StopType.full, StopType.full,
equipmentProfile, equipmentProfile,
const Film.other(),
); );
test('EV 1', () { test('EV 1', () {
@ -455,7 +450,6 @@ void main() {
ev, ev,
StopType.half, StopType.half,
equipmentProfile, equipmentProfile,
const Film.other(),
); );
test('EV 1', () { test('EV 1', () {
@ -555,7 +549,6 @@ void main() {
ev, ev,
StopType.third, StopType.third,
equipmentProfile, equipmentProfile,
const Film.other(),
); );
test('EV 1', () { test('EV 1', () {
@ -668,7 +661,6 @@ void main() {
ev, ev,
StopType.full, StopType.full,
equipmentProfile, equipmentProfile,
const Film.other(),
); );
test('EV 1', () { test('EV 1', () {
@ -768,7 +760,6 @@ void main() {
ev, ev,
StopType.half, StopType.half,
equipmentProfile, equipmentProfile,
const Film.other(),
); );
test('EV 1', () { test('EV 1', () {
@ -868,7 +859,6 @@ void main() {
ev, ev,
StopType.third, StopType.third,
equipmentProfile, equipmentProfile,
const Film.other(),
); );
test('EV 1', () { test('EV 1', () {