mirror of
https://github.com/hmalik144/easy_cc_flutter.git
synced 2025-12-10 03:05:34 +00:00
Ability to cache currency selection (#5)
This commit is contained in:
14
lib/locator.dart
Normal file
14
lib/locator.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import 'package:easy_cc_flutter/MainViewModel.dart';
|
||||
import 'package:easy_cc_flutter/data/repository/RepositoryImpl.dart';
|
||||
import 'package:get_it/get_it.dart';
|
||||
|
||||
import 'data/prefs/PreferenceProvider.dart';
|
||||
|
||||
GetIt locator = GetIt.instance;
|
||||
|
||||
void setupLocator() {
|
||||
|
||||
locator.registerLazySingleton(() => PreferenceProvider());
|
||||
locator.registerLazySingleton(() => RepositoryImpl());
|
||||
locator.registerFactory(() => MainViewModel());
|
||||
}
|
||||
Reference in New Issue
Block a user