2022-08-14 20:40:34 +02:00
|
|
|
import 'package:revanced_manager/main.dart';
|
2022-08-21 03:30:40 +02:00
|
|
|
import 'package:revanced_manager/main_viewmodel.dart';
|
2022-08-07 21:15:52 +02:00
|
|
|
import 'package:revanced_manager/services/patcher_api.dart';
|
2022-08-06 23:35:35 +02:00
|
|
|
import 'package:revanced_manager/ui/views/app_selector/app_selector_view.dart';
|
2022-08-12 20:07:16 +02:00
|
|
|
import 'package:revanced_manager/ui/views/contributors/contributors_view.dart';
|
2022-08-16 15:06:56 +02:00
|
|
|
import 'package:revanced_manager/ui/views/home/home_viewmodel.dart';
|
2022-08-13 11:56:30 +02:00
|
|
|
import 'package:revanced_manager/ui/views/installer/installer_view.dart';
|
2022-08-21 03:30:40 +02:00
|
|
|
import 'package:revanced_manager/ui/views/patcher/patcher_view.dart';
|
2022-08-09 02:33:37 +02:00
|
|
|
import 'package:revanced_manager/ui/views/patcher/patcher_viewmodel.dart';
|
2022-08-07 21:15:52 +02:00
|
|
|
import 'package:revanced_manager/ui/views/patches_selector/patches_selector_view.dart';
|
2022-08-14 16:03:01 +02:00
|
|
|
import 'package:revanced_manager/ui/views/root_checker/root_checker_view.dart';
|
2022-08-10 14:30:28 +02:00
|
|
|
import 'package:revanced_manager/ui/views/settings/settings_view.dart';
|
2022-08-06 14:13:28 +02:00
|
|
|
import 'package:stacked/stacked_annotations.dart';
|
|
|
|
import 'package:stacked_services/stacked_services.dart';
|
2022-08-12 11:42:43 +02:00
|
|
|
import 'package:stacked_themes/stacked_themes.dart';
|
2022-08-06 14:13:28 +02:00
|
|
|
|
2022-08-12 11:42:43 +02:00
|
|
|
@StackedApp(
|
|
|
|
routes: [
|
2022-08-14 20:40:34 +02:00
|
|
|
MaterialRoute(page: Navigation),
|
2022-08-21 03:30:40 +02:00
|
|
|
MaterialRoute(page: PatcherView),
|
2022-08-12 11:42:43 +02:00
|
|
|
MaterialRoute(page: AppSelectorView),
|
|
|
|
MaterialRoute(page: PatchesSelectorView),
|
2022-08-13 11:56:30 +02:00
|
|
|
MaterialRoute(page: InstallerView),
|
2022-08-12 20:07:16 +02:00
|
|
|
MaterialRoute(page: SettingsView),
|
2022-08-14 16:03:01 +02:00
|
|
|
MaterialRoute(page: ContributorsView),
|
|
|
|
MaterialRoute(page: RootCheckerView),
|
2022-08-12 11:42:43 +02:00
|
|
|
],
|
|
|
|
dependencies: [
|
2022-08-21 03:30:40 +02:00
|
|
|
LazySingleton(classType: MainViewModel),
|
2022-08-16 15:06:56 +02:00
|
|
|
LazySingleton(classType: HomeViewModel),
|
2022-08-12 11:42:43 +02:00
|
|
|
LazySingleton(classType: PatcherViewModel),
|
2022-08-21 03:30:40 +02:00
|
|
|
LazySingleton(classType: NavigationService),
|
2022-08-12 11:42:43 +02:00
|
|
|
LazySingleton(
|
2022-08-14 20:40:34 +02:00
|
|
|
classType: ThemeService,
|
|
|
|
resolveUsing: ThemeService.getInstance,
|
|
|
|
),
|
2022-08-21 03:30:40 +02:00
|
|
|
LazySingleton(classType: PatcherAPI),
|
2022-08-12 11:42:43 +02:00
|
|
|
],
|
|
|
|
)
|
2022-08-06 14:13:28 +02:00
|
|
|
class AppSetup {}
|