app.dart 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import 'package:revanced_manager/services/download_manager.dart';
  2. import 'package:revanced_manager/services/github_api.dart';
  3. import 'package:revanced_manager/services/manager_api.dart';
  4. import 'package:revanced_manager/services/patcher_api.dart';
  5. import 'package:revanced_manager/services/revanced_api.dart';
  6. import 'package:revanced_manager/services/toast.dart';
  7. import 'package:revanced_manager/ui/views/app_selector/app_selector_view.dart';
  8. import 'package:revanced_manager/ui/views/contributors/contributors_view.dart';
  9. import 'package:revanced_manager/ui/views/home/home_viewmodel.dart';
  10. import 'package:revanced_manager/ui/views/installer/installer_view.dart';
  11. import 'package:revanced_manager/ui/views/installer/installer_viewmodel.dart';
  12. import 'package:revanced_manager/ui/views/navigation/navigation_view.dart';
  13. import 'package:revanced_manager/ui/views/navigation/navigation_viewmodel.dart';
  14. import 'package:revanced_manager/ui/views/patch_options/patch_options_view.dart';
  15. import 'package:revanced_manager/ui/views/patch_options/patch_options_viewmodel.dart';
  16. import 'package:revanced_manager/ui/views/patcher/patcher_view.dart';
  17. import 'package:revanced_manager/ui/views/patcher/patcher_viewmodel.dart';
  18. import 'package:revanced_manager/ui/views/patches_selector/patches_selector_view.dart';
  19. import 'package:revanced_manager/ui/views/settings/settings_view.dart';
  20. import 'package:revanced_manager/ui/widgets/appInfoView/app_info_view.dart';
  21. import 'package:stacked/stacked_annotations.dart';
  22. import 'package:stacked_services/stacked_services.dart';
  23. @StackedApp(
  24. routes: [
  25. MaterialRoute(page: NavigationView),
  26. MaterialRoute(page: PatcherView),
  27. MaterialRoute(page: AppSelectorView),
  28. MaterialRoute(page: PatchesSelectorView),
  29. MaterialRoute(page: PatchOptionsView),
  30. MaterialRoute(page: InstallerView),
  31. MaterialRoute(page: SettingsView),
  32. MaterialRoute(page: ContributorsView),
  33. MaterialRoute(page: AppInfoView),
  34. ],
  35. dependencies: [
  36. LazySingleton(classType: NavigationViewModel),
  37. LazySingleton(classType: HomeViewModel),
  38. LazySingleton(classType: PatcherViewModel),
  39. LazySingleton(classType: PatchOptionsViewModel),
  40. LazySingleton(classType: InstallerViewModel),
  41. LazySingleton(classType: NavigationService),
  42. LazySingleton(classType: ManagerAPI),
  43. LazySingleton(classType: PatcherAPI),
  44. LazySingleton(classType: RevancedAPI),
  45. LazySingleton(classType: GithubAPI),
  46. LazySingleton(classType: DownloadManager),
  47. LazySingleton(classType: Toast),
  48. ],
  49. )
  50. class AppSetup {}