mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 15:00:40 +00:00
use Toggleable
from resources
This commit is contained in:
parent
1cd1bc298a
commit
e3baf1f505
7 changed files with 34 additions and 12 deletions
|
@ -4,7 +4,8 @@ import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
|||
|
||||
export 'src/data/models/iap_product.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/iap_storage_service.dart';
|
||||
|
||||
const List<Film> films = [];
|
||||
|
|
29
iap/lib/src/data/equipment_profile_service.dart
Normal file
29
iap/lib/src/data/equipment_profile_service.dart
Normal 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 => {};
|
||||
}
|
|
@ -1,16 +1,10 @@
|
|||
import 'package:flutter/foundation.dart';
|
||||
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
||||
|
||||
typedef SelectableValue<T extends Film> = ({T film, bool isUsed});
|
||||
|
||||
class FilmsStorageService {
|
||||
FilmsStorageService();
|
||||
|
||||
Future<void> init() async {}
|
||||
|
||||
@visibleForTesting
|
||||
Future<void> createTable(dynamic _) async {}
|
||||
|
||||
String get selectedFilmId => '';
|
||||
set selectedFilmId(String id) {}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ dependencies:
|
|||
m3_lightmeter_resources:
|
||||
git:
|
||||
url: "https://github.com/vodemn/m3_lightmeter_resources"
|
||||
ref: v2.0.0
|
||||
ref: v2.1.0
|
||||
shared_preferences: 2.2.0
|
||||
|
||||
dev_dependencies:
|
||||
|
|
|
@ -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/utils/double_to_zoom.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:meta/meta.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
|
|
@ -32,11 +32,11 @@ dependencies:
|
|||
m3_lightmeter_iap:
|
||||
git:
|
||||
url: "https://github.com/vodemn/m3_lightmeter_iap"
|
||||
ref: feature/MLI-15
|
||||
ref: feature/ML-196
|
||||
m3_lightmeter_resources:
|
||||
git:
|
||||
url: "https://github.com/vodemn/m3_lightmeter_resources"
|
||||
ref: v2.0.0
|
||||
ref: v2.1.0
|
||||
material_color_utilities: 0.5.0
|
||||
package_info_plus: 4.2.0
|
||||
permission_handler: 10.4.3
|
||||
|
|
|
@ -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/timer/screen_timer.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:shared_preferences/shared_preferences.dart';
|
||||
|
||||
|
|
Loading…
Reference in a new issue