2022-08-06 14:13:28 +02:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// StackedLocatorGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
2022-08-13 11:56:30 +02:00
|
|
|
// ignore_for_file: public_member_api_docs, depend_on_referenced_packages, implementation_imports
|
2022-08-06 14:13:28 +02:00
|
|
|
|
|
|
|
import 'package:stacked_core/stacked_core.dart';
|
|
|
|
import 'package:stacked_services/src/navigation/navigation_service.dart';
|
2022-08-12 11:42:43 +02:00
|
|
|
import 'package:stacked_themes/src/theme_service.dart';
|
2022-08-06 14:13:28 +02:00
|
|
|
|
2022-08-07 21:15:52 +02:00
|
|
|
import '../services/patcher_api.dart';
|
2022-08-09 02:16:33 +02:00
|
|
|
import '../ui/views/app_selector/app_selector_viewmodel.dart';
|
2022-08-13 11:56:30 +02:00
|
|
|
import '../ui/views/installer/installer_viewmodel.dart';
|
2022-08-09 01:01:06 +02:00
|
|
|
import '../ui/views/patcher/patcher_viewmodel.dart';
|
2022-08-09 02:16:33 +02:00
|
|
|
import '../ui/views/patches_selector/patches_selector_viewmodel.dart';
|
2022-08-07 21:15:52 +02:00
|
|
|
|
2022-08-06 14:13:28 +02:00
|
|
|
final locator = StackedLocator.instance;
|
|
|
|
|
|
|
|
Future<void> setupLocator(
|
|
|
|
{String? environment, EnvironmentFilter? environmentFilter}) async {
|
|
|
|
// Register environments
|
|
|
|
locator.registerEnvironment(
|
|
|
|
environment: environment, environmentFilter: environmentFilter);
|
|
|
|
|
|
|
|
// Register dependencies
|
|
|
|
locator.registerLazySingleton(() => NavigationService());
|
2022-08-09 02:20:50 +02:00
|
|
|
locator.registerLazySingleton(() => PatcherAPI());
|
2022-08-09 01:01:06 +02:00
|
|
|
locator.registerLazySingleton(() => PatcherViewModel());
|
2022-08-09 02:16:33 +02:00
|
|
|
locator.registerLazySingleton(() => AppSelectorViewModel());
|
|
|
|
locator.registerLazySingleton(() => PatchesSelectorViewModel());
|
2022-08-13 11:56:30 +02:00
|
|
|
locator.registerLazySingleton(() => InstallerViewModel());
|
2022-08-12 11:42:43 +02:00
|
|
|
locator.registerLazySingleton(() => ThemeService.getInstance());
|
2022-08-06 14:13:28 +02:00
|
|
|
}
|