-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathlocator.dart
40 lines (36 loc) · 1.69 KB
/
locator.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
37
38
39
40
import 'package:get_it/get_it.dart';
import 'package:injectable/injectable.dart';
// import 'package:dartz/dartz.dart';
// import 'package:stacked_services/stacked_services.dart';
// import 'package:voting_app/core/services/auth_service.dart';
// import 'package:voting_app/core/viewmodels/all_issues_model.dart';
// import 'package:voting_app/core/viewmodels/bill_model.dart';
// import 'package:voting_app/core/viewmodels/bill_vote_model.dart';
// import 'package:voting_app/core/viewmodels/issue_model.dart';
// import 'package:voting_app/core/viewmodels/settings_model.dart';
// import 'package:voting_app/core/viewmodels/theme_model.dart';
// import 'package:voting_app/core/viewmodels/user_model.dart';
//
// import 'core/services/api.dart';
// import 'core/services/voting_service.dart';
// import 'core/services/wallet.dart';
// import 'core/viewmodels/all_bills_model.dart';
import 'locator.config.dart';
final GetIt locator = GetIt.instance;
// void setupLocator() {
// locator.registerLazySingleton(() => NavigationService());
// locator.registerLazySingleton(() => Api());
// locator.registerLazySingleton(() => AuthenticationService());
// locator.registerLazySingleton(
// () => VotingService(walletService: WalletService(None())));
// locator.registerFactory(() => BillsModel());
// locator.registerFactory(() => IssuesModel());
// locator.registerFactory(() => UserModel());
// locator.registerFactory(() => ThemeModel());
// locator.registerFactory(() => BillModel());
// locator.registerFactory(() => BillVoteModel());
// locator.registerFactory(() => SettingsModel());
// locator.registerFactory(() => IssueModel());
// }
@injectableInit
void setupLocator() => $initGetIt(locator);