revanced-manager/lib/app/app.dart

50 lines
2.4 KiB
Dart
Raw Normal View History

import 'package:revanced_manager/services/download_manager.dart';
import 'package:revanced_manager/services/github_api.dart';
2022-08-25 01:51:47 +02:00
import 'package:revanced_manager/services/manager_api.dart';
2022-08-07 21:15:52 +02:00
import 'package:revanced_manager/services/patcher_api.dart';
import 'package:revanced_manager/services/revanced_api.dart';
import 'package:revanced_manager/services/toast.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';
import 'package:revanced_manager/ui/views/home/home_viewmodel.dart';
import 'package:revanced_manager/ui/views/installer/installer_view.dart';
2022-09-05 10:07:38 +02:00
import 'package:revanced_manager/ui/views/navigation/navigation_view.dart';
import 'package:revanced_manager/ui/views/navigation/navigation_viewmodel.dart';
2023-10-12 02:00:39 +02:00
import 'package:revanced_manager/ui/views/patch_options/patch_options_view.dart';
import 'package:revanced_manager/ui/views/patch_options/patch_options_viewmodel.dart';
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-10 14:30:28 +02:00
import 'package:revanced_manager/ui/views/settings/settings_view.dart';
2022-09-05 16:30:26 +02:00
import 'package:revanced_manager/ui/widgets/appInfoView/app_info_view.dart';
import 'package:stacked/stacked_annotations.dart';
import 'package:stacked_services/stacked_services.dart';
@StackedApp(
routes: [
2022-09-05 10:07:38 +02:00
MaterialRoute(page: NavigationView),
MaterialRoute(page: PatcherView),
MaterialRoute(page: AppSelectorView),
MaterialRoute(page: PatchesSelectorView),
2023-10-12 02:00:39 +02:00
MaterialRoute(page: PatchOptionsView),
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),
2022-09-05 16:30:26 +02:00
MaterialRoute(page: AppInfoView),
],
dependencies: [
2022-09-05 10:07:38 +02:00
LazySingleton(classType: NavigationViewModel),
LazySingleton(classType: HomeViewModel),
LazySingleton(classType: PatcherViewModel),
2023-10-12 02:00:39 +02:00
LazySingleton(classType: PatchOptionsViewModel),
LazySingleton(classType: NavigationService),
2022-08-25 01:51:47 +02:00
LazySingleton(classType: ManagerAPI),
LazySingleton(classType: PatcherAPI),
LazySingleton(classType: RevancedAPI),
LazySingleton(classType: GithubAPI),
LazySingleton(classType: DownloadManager),
LazySingleton(classType: Toast),
],
)
class AppSetup {}