Set Feature.showUnlockProOnMainScreen: true

This commit is contained in:
Vadim 2024-04-15 12:46:47 +02:00
parent 71038d25dd
commit 3cfb5edf01
2 changed files with 3 additions and 1 deletions

View file

@ -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/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/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/settings/components/shared/disable/widget_disable.dart';
import 'package:lightmeter/screens/settings/screen_settings.dart';
@ -75,6 +76,7 @@ void testPurchases(String description) {
}
void _expectProMeteringScreen({required bool enabled}) {
expect(find.byType(LightmeterProAnimatedDialog), !enabled ? findsOneWidget : findsNothing);
expect(find.byType(EquipmentProfilePicker), enabled ? findsOneWidget : findsNothing);
expect(find.byType(ExtremeExposurePairsContainer), findsOneWidget);
expect(find.byType(FilmPicker), enabled ? findsOneWidget : findsNothing);

View file

@ -1,5 +1,5 @@
enum Feature { showUnlockProOnMainScreen }
const featuresDefaultValues = {
Feature.showUnlockProOnMainScreen: false,
Feature.showUnlockProOnMainScreen: true,
};