mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 17:00:39 +00:00
removed film from exposure pairs building
This commit is contained in:
parent
0eb6e7cc16
commit
0d530b240b
3 changed files with 4 additions and 14 deletions
|
@ -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,
|
||||
),
|
||||
),
|
||||
|
|
|
@ -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,
|
||||
);
|
||||
|
|
|
@ -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', () {
|
||||
|
|
Loading…
Reference in a new issue