2022-08-06 17:43:28 +05:30
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// StackedLocatorGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
// ignore_for_file: public_member_api_docs
|
|
|
|
|
|
|
|
import 'package:stacked_core/stacked_core.dart';
|
|
|
|
import 'package:stacked_services/src/navigation/navigation_service.dart';
|
|
|
|
|
2022-08-08 00:45:52 +05:30
|
|
|
import '../services/patcher_api.dart';
|
2022-08-09 01:16:33 +01:00
|
|
|
import '../ui/views/app_selector/app_selector_viewmodel.dart';
|
2022-08-09 00:01:06 +01:00
|
|
|
import '../ui/views/patcher/patcher_viewmodel.dart';
|
2022-08-09 01:16:33 +01:00
|
|
|
import '../ui/views/patches_selector/patches_selector_viewmodel.dart';
|
2022-08-08 00:45:52 +05:30
|
|
|
|
2022-08-06 17:43:28 +05:30
|
|
|
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 01:20:50 +01:00
|
|
|
locator.registerLazySingleton(() => PatcherAPI());
|
2022-08-09 00:01:06 +01:00
|
|
|
locator.registerLazySingleton(() => PatcherViewModel());
|
2022-08-09 01:16:33 +01:00
|
|
|
locator.registerLazySingleton(() => AppSelectorViewModel());
|
|
|
|
locator.registerLazySingleton(() => PatchesSelectorViewModel());
|
2022-08-06 17:43:28 +05:30
|
|
|
}
|