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/shared/icon_placeholder/widget_icon_placeholder.dart';
import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart';
class ExposurePairsList extends StatelessWidget {
final List<ExposurePair> 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,
),
),

View file

@ -108,7 +108,6 @@ class MeteringContainerBuidler extends StatelessWidget {
ev!,
UserPreferencesProvider.stopTypeOf(context),
EquipmentProfiles.selectedOf(context),
Films.selectedOf(context),
)
: <ExposurePair>[];
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,
);

View file

@ -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', () {