Start to build app skeleton
This commit is contained in:
11
moneymgr_mobile/lib/services/storage/prefs.dart
Normal file
11
moneymgr_mobile/lib/services/storage/prefs.dart
Normal file
@ -0,0 +1,11 @@
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
||||
part 'prefs.g.dart';
|
||||
|
||||
@riverpod
|
||||
Future<SharedPreferencesWithCache> prefs(Ref ref) =>
|
||||
SharedPreferencesWithCache.create(
|
||||
cacheOptions: const SharedPreferencesWithCacheOptions(),
|
||||
);
|
Reference in New Issue
Block a user