mirror of
https://github.com/hmalik144/easy_cc_flutter.git
synced 2025-12-10 03:05:34 +00:00
Retrofit classes implemented with interceptor and base features
This commit is contained in:
@@ -10,12 +10,9 @@ import 'data/prefs/PreferenceProvider.dart';
|
||||
GetIt locator = GetIt.instance;
|
||||
|
||||
void setupLocator() {
|
||||
final dio = Dio();
|
||||
|
||||
locator.registerLazySingleton(() => PreferenceProvider());
|
||||
locator.registerLazySingleton(() => CurrencyApi(dio));
|
||||
locator.registerLazySingleton(() => BackupCurrencyApi(dio));
|
||||
locator.registerLazySingleton(() => CurrencyApi.create());
|
||||
locator.registerLazySingleton(() => BackupCurrencyApi.create());
|
||||
locator.registerLazySingleton(() => RepositoryImpl());
|
||||
locator.registerFactory(() => MainViewModel());
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user