mirror of
https://github.com/hmalik144/easy_cc_flutter.git
synced 2025-12-10 03:05:34 +00:00
- Homescreen widget for android added
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import 'package:easy_cc_flutter/main_view_model.dart';
|
||||
import 'package:easy_cc_flutter/data/network/backup_currency_api.dart';
|
||||
import 'package:easy_cc_flutter/data/network/currency_api.dart';
|
||||
import 'package:easy_cc_flutter/data/repository/repository_impl.dart';
|
||||
import 'package:easy_cc_flutter/main_view_model.dart';
|
||||
import 'package:get_it/get_it.dart';
|
||||
|
||||
import 'data/prefs/preference_provider.dart';
|
||||
import 'data/repository/repository.dart';
|
||||
|
||||
GetIt locator = GetIt.instance;
|
||||
|
||||
@@ -12,6 +12,6 @@ void setupLocator() {
|
||||
locator.registerLazySingleton(() => PreferenceProvider());
|
||||
locator.registerLazySingleton(() => CurrencyApi.create());
|
||||
locator.registerLazySingleton(() => BackupCurrencyApi.create());
|
||||
locator.registerLazySingleton(() => RepositoryImpl());
|
||||
locator.registerFactory(() => MainViewModel());
|
||||
locator.registerLazySingleton<Repository>(() => RepositoryImpl(locator<PreferenceProvider>(), locator<CurrencyApi>(),locator<BackupCurrencyApi>()));
|
||||
locator.registerFactory(() => MainViewModel(locator<Repository>()));
|
||||
}
|
||||
Reference in New Issue
Block a user