Compare commits

..

No commits in common. "9ef7764b587f7da65aab1a63bcc83d4fb5e98bfa" and "7633f3fd27883449957bb86b95ed6e23a912b718" have entirely different histories.

3 changed files with 15 additions and 23 deletions

View file

@ -7,7 +7,6 @@ import 'package:lightmeter/data/models/metering_screen_layout_config.dart';
import 'package:lightmeter/data/models/supported_locale.dart';
import 'package:lightmeter/data/models/theme_type.dart';
import 'package:lightmeter/data/models/volume_action.dart';
import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart';
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
import 'package:shared_preferences/shared_preferences.dart';
@ -149,13 +148,9 @@ class UserPreferencesService {
);
set film(Film value) => _sharedPreferences.setString(filmKey, value.name);
String get selectedEquipmentProfileId => _sharedPreferences.selectedEquipmentProfileId;
set selectedEquipmentProfileId(String id) {
_sharedPreferences.selectedEquipmentProfileId = id;
}
String get selectedEquipmentProfileId => ''; // coverage:ignore-line
set selectedEquipmentProfileId(String id) {} // coverage:ignore-line
List<EquipmentProfileData> get equipmentProfiles => _sharedPreferences.equipmentProfiles;
set equipmentProfiles(List<EquipmentProfileData> profiles) {
_sharedPreferences.equipmentProfiles = profiles;
}
List<EquipmentProfileData> get equipmentProfiles => []; // coverage:ignore-line
set equipmentProfiles(List<EquipmentProfileData> profiles) {} // coverage:ignore-line
}

View file

@ -1,8 +1,6 @@
import 'package:flutter/material.dart';
import 'package:lightmeter/environment.dart';
import 'package:lightmeter/generated/l10n.dart';
import 'package:lightmeter/screens/settings/components/metering/components/equipment_profiles/components/equipment_profile_screen/screen_equipment_profile.dart';
import 'package:lightmeter/utils/inherited_generics.dart';
import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart';
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
@ -15,13 +13,12 @@ class EquipmentProfilesListTile extends StatelessWidget {
leading: const Icon(Icons.camera),
title: Text(S.of(context).equipmentProfiles),
onTap: () {
if (context.get<Environment>().buildType == BuildType.dev ||
IAPProducts.isPurchased(context, IAPProductType.paidFeatures)) {
if (IAPProducts.isPurchased(context, IAPProductType.equipment)) {
Navigator.of(context).push<EquipmentProfileData>(
MaterialPageRoute(builder: (_) => const EquipmentProfilesScreen()),
);
} else {
IAPProductsProvider.of(context).buy(IAPProductType.paidFeatures);
IAPProductsProvider.of(context).buy(IAPProductType.equipment);
}
},
);

View file

@ -1,5 +1,5 @@
name: lightmeter
description: Lightmeter app inspired by Material 3 design system.
description: A new Flutter project.
publish_to: "none"
version: 0.12.0+31
@ -9,12 +9,12 @@ environment:
dependencies:
app_settings: 4.2.0
bloc_concurrency: 0.2.2
camera: 0.10.5+2
camera: 0.10.5
clipboard: 0.1.3
dynamic_color: 1.6.6
dynamic_color: 1.6.5
exif: 3.1.4
firebase_core: 2.14.0
firebase_crashlytics: 3.3.3
firebase_crashlytics: 3.3.1
flutter:
sdk: flutter
flutter_bloc: 8.1.3
@ -32,17 +32,17 @@ dependencies:
url: "https://github.com/vodemn/m3_lightmeter_resources"
ref: main
material_color_utilities: 0.2.0
package_info_plus: 4.0.2
permission_handler: 10.4.3
package_info_plus: 4.0.1
permission_handler: 10.2.0
platform: 3.1.0
shared_preferences: 2.2.0
url_launcher: 6.1.12
url_launcher: 6.1.11
uuid: 3.0.7
vibration: 1.8.1
vibration: 1.7.7
dev_dependencies:
bloc_test: 9.1.3
build_runner: 2.4.6
build_runner: ^2.1.7
flutter_launcher_icons: 0.11.0
flutter_native_splash: 2.2.16
flutter_test: