mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 07:50:42 +00:00
ML-134 Set Feature.showUnlockProOnMainScreen: true
(#169)
* Set `Feature.showUnlockProOnMainScreen: true` * update metering goldens
This commit is contained in:
parent
d5f28ee5a4
commit
59977cc9b5
3 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,7 @@ import 'package:lightmeter/screens/metering/components/shared/readings_container
|
||||||
import 'package:lightmeter/screens/metering/components/shared/readings_container/components/extreme_exposure_pairs_container/widget_container_extreme_exposure_pairs.dart';
|
import 'package:lightmeter/screens/metering/components/shared/readings_container/components/extreme_exposure_pairs_container/widget_container_extreme_exposure_pairs.dart';
|
||||||
import 'package:lightmeter/screens/metering/components/shared/readings_container/components/film_picker/widget_picker_film.dart';
|
import 'package:lightmeter/screens/metering/components/shared/readings_container/components/film_picker/widget_picker_film.dart';
|
||||||
import 'package:lightmeter/screens/metering/components/shared/readings_container/components/iso_picker/widget_picker_iso.dart';
|
import 'package:lightmeter/screens/metering/components/shared/readings_container/components/iso_picker/widget_picker_iso.dart';
|
||||||
|
import 'package:lightmeter/screens/metering/components/shared/readings_container/components/lightmeter_pro/widget_lightmeter_pro.dart';
|
||||||
import 'package:lightmeter/screens/metering/components/shared/readings_container/components/nd_picker/widget_picker_nd.dart';
|
import 'package:lightmeter/screens/metering/components/shared/readings_container/components/nd_picker/widget_picker_nd.dart';
|
||||||
import 'package:lightmeter/screens/settings/components/shared/disable/widget_disable.dart';
|
import 'package:lightmeter/screens/settings/components/shared/disable/widget_disable.dart';
|
||||||
import 'package:lightmeter/screens/settings/screen_settings.dart';
|
import 'package:lightmeter/screens/settings/screen_settings.dart';
|
||||||
|
@ -75,6 +76,7 @@ void testPurchases(String description) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void _expectProMeteringScreen({required bool enabled}) {
|
void _expectProMeteringScreen({required bool enabled}) {
|
||||||
|
expect(find.byType(LightmeterProAnimatedDialog), !enabled ? findsOneWidget : findsNothing);
|
||||||
expect(find.byType(EquipmentProfilePicker), enabled ? findsOneWidget : findsNothing);
|
expect(find.byType(EquipmentProfilePicker), enabled ? findsOneWidget : findsNothing);
|
||||||
expect(find.byType(ExtremeExposurePairsContainer), findsOneWidget);
|
expect(find.byType(ExtremeExposurePairsContainer), findsOneWidget);
|
||||||
expect(find.byType(FilmPicker), enabled ? findsOneWidget : findsNothing);
|
expect(find.byType(FilmPicker), enabled ? findsOneWidget : findsNothing);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
enum Feature { showUnlockProOnMainScreen }
|
enum Feature { showUnlockProOnMainScreen }
|
||||||
|
|
||||||
const featuresDefaultValues = {
|
const featuresDefaultValues = {
|
||||||
Feature.showUnlockProOnMainScreen: false,
|
Feature.showUnlockProOnMainScreen: true,
|
||||||
};
|
};
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 1.5 MiB |
Loading…
Reference in a new issue