use Toggleable from resources

This commit is contained in:
Vadim 2024-11-11 14:45:14 +01:00
parent 1cd1bc298a
commit e3baf1f505
7 changed files with 34 additions and 12 deletions

View file

@ -4,7 +4,8 @@ import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
export 'src/data/models/iap_product.dart'; export 'src/data/models/iap_product.dart';
export 'src/providers/iap_products_provider.dart'; export 'src/providers/iap_products_provider.dart';
export 'src/data/iap_storage_service.dart'; export 'src/data/equipment_profile_service.dart';
export 'src/data/films_storage_service.dart'; export 'src/data/films_storage_service.dart';
export 'src/data/iap_storage_service.dart';
const List<Film> films = []; const List<Film> films = [];

View file

@ -0,0 +1,29 @@
import 'dart:async';
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
class EquipmentProfilesStorageService {
EquipmentProfilesStorageService();
Future<void> init() async {}
String get selectedEquipmentProfileId => '';
set selectedEquipmentProfileId(String id) {}
Future<void> addProfile(EquipmentProfile profile) async {}
Future<void> updateProfile({
required String id,
String? name,
List<IsoValue>? isoValues,
List<NdValue>? ndValues,
List<ApertureValue>? apertureValues,
List<ShutterSpeedValue>? shutterSpeedValues,
double? lensZoom,
bool? isUsed,
}) async {}
Future<void> deleteProfile(String id) async {}
Future<TogglableMap<EquipmentProfile>> getProfiles() async => {};
}

View file

@ -1,16 +1,10 @@
import 'package:flutter/foundation.dart';
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart'; import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
typedef SelectableValue<T extends Film> = ({T film, bool isUsed});
class FilmsStorageService { class FilmsStorageService {
FilmsStorageService(); FilmsStorageService();
Future<void> init() async {} Future<void> init() async {}
@visibleForTesting
Future<void> createTable(dynamic _) async {}
String get selectedFilmId => ''; String get selectedFilmId => '';
set selectedFilmId(String id) {} set selectedFilmId(String id) {}

View file

@ -12,7 +12,7 @@ dependencies:
m3_lightmeter_resources: m3_lightmeter_resources:
git: git:
url: "https://github.com/vodemn/m3_lightmeter_resources" url: "https://github.com/vodemn/m3_lightmeter_resources"
ref: v2.0.0 ref: v2.1.0
shared_preferences: 2.2.0 shared_preferences: 2.2.0
dev_dependencies: dev_dependencies:

View file

@ -18,7 +18,6 @@ import 'package:lightmeter/screens/settings/components/shared/dialog_range_picke
import 'package:lightmeter/screens/settings/screen_settings.dart'; import 'package:lightmeter/screens/settings/screen_settings.dart';
import 'package:lightmeter/utils/double_to_zoom.dart'; import 'package:lightmeter/utils/double_to_zoom.dart';
import 'package:lightmeter/utils/platform_utils.dart'; import 'package:lightmeter/utils/platform_utils.dart';
import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart';
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart'; import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
import 'package:meta/meta.dart'; import 'package:meta/meta.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';

View file

@ -32,11 +32,11 @@ dependencies:
m3_lightmeter_iap: m3_lightmeter_iap:
git: git:
url: "https://github.com/vodemn/m3_lightmeter_iap" url: "https://github.com/vodemn/m3_lightmeter_iap"
ref: feature/MLI-15 ref: feature/ML-196
m3_lightmeter_resources: m3_lightmeter_resources:
git: git:
url: "https://github.com/vodemn/m3_lightmeter_resources" url: "https://github.com/vodemn/m3_lightmeter_resources"
ref: v2.0.0 ref: v2.1.0
material_color_utilities: 0.5.0 material_color_utilities: 0.5.0
package_info_plus: 4.2.0 package_info_plus: 4.2.0
permission_handler: 10.4.3 permission_handler: 10.4.3

View file

@ -23,7 +23,6 @@ import 'package:lightmeter/screens/settings/screen_settings.dart';
import 'package:lightmeter/screens/shared/animated_circular_button/widget_button_circular_animated.dart'; import 'package:lightmeter/screens/shared/animated_circular_button/widget_button_circular_animated.dart';
import 'package:lightmeter/screens/timer/screen_timer.dart'; import 'package:lightmeter/screens/timer/screen_timer.dart';
import 'package:lightmeter/utils/platform_utils.dart'; import 'package:lightmeter/utils/platform_utils.dart';
import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart';
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart'; import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';