-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodules.dart
36 lines (26 loc) · 1.04 KB
/
modules.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// ignore_for_file: implementation_imports
// 📦 Package imports:
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import 'package:hive_ce/src/hive_impl.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:image_picker/image_picker.dart';
import 'package:local_auth/local_auth.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
// 🌎 Project imports:
import 'package:authenticator/core/utils/paths.util.dart';
part 'modules.g.dart';
@riverpod
AppPaths appPaths(AppPathsRef ref) => AppPaths();
@riverpod
HiveImpl hive(HiveRef ref) => HiveImpl();
@riverpod
ImagePicker imagePicker(ImagePickerRef ref) => ImagePicker();
@riverpod
LocalAuthentication localAuth(LocalAuthRef ref) => LocalAuthentication();
@riverpod
FirebaseFirestore firestore(FirestoreRef ref) => FirebaseFirestore.instance;
@riverpod
FlutterSecureStorage secureStorage(SecureStorageRef ref) =>
const FlutterSecureStorage();
final mainPath = StateProvider((ref) => '');