mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
106d77ea0c
* feat: "New dashboard UI". * fix: some improvenents * fix: fix inconsistencies and light theme. * fix: save patched and installed apps on prefs, improve installer log, improve dashboard with real data (wip) Co-authored-by: Aunali321 <aunvakil.aa@gmail.com> * feat: move chips to a separate widget. Co-authored-by: Alberto Ponces <ponces26@gmail.com>
47 lines
2.1 KiB
Dart
47 lines
2.1 KiB
Dart
import 'package:revanced_manager/main.dart';
|
|
import 'package:revanced_manager/services/manager_api.dart';
|
|
import 'package:revanced_manager/services/patcher_api.dart';
|
|
import 'package:revanced_manager/services/root_api.dart';
|
|
import 'package:revanced_manager/ui/views/app_selector/app_selector_view.dart';
|
|
import 'package:revanced_manager/ui/views/app_selector/app_selector_viewmodel.dart';
|
|
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';
|
|
import 'package:revanced_manager/ui/views/installer/installer_viewmodel.dart';
|
|
import 'package:revanced_manager/ui/views/patcher/patcher_viewmodel.dart';
|
|
import 'package:revanced_manager/ui/views/patches_selector/patches_selector_view.dart';
|
|
import 'package:revanced_manager/ui/views/patches_selector/patches_selector_viewmodel.dart';
|
|
import 'package:revanced_manager/ui/views/root_checker/root_checker_view.dart';
|
|
import 'package:revanced_manager/ui/views/settings/settings_view.dart';
|
|
import 'package:stacked/stacked_annotations.dart';
|
|
import 'package:stacked_services/stacked_services.dart';
|
|
import 'package:stacked_themes/stacked_themes.dart';
|
|
|
|
@StackedApp(
|
|
routes: [
|
|
MaterialRoute(page: Navigation),
|
|
MaterialRoute(page: AppSelectorView),
|
|
MaterialRoute(page: PatchesSelectorView),
|
|
MaterialRoute(page: InstallerView),
|
|
MaterialRoute(page: SettingsView),
|
|
MaterialRoute(page: ContributorsView),
|
|
MaterialRoute(page: RootCheckerView),
|
|
],
|
|
dependencies: [
|
|
LazySingleton(classType: NavigationService),
|
|
LazySingleton(classType: PatcherAPI),
|
|
LazySingleton(classType: ManagerAPI),
|
|
LazySingleton(classType: RootAPI),
|
|
LazySingleton(classType: HomeViewModel),
|
|
LazySingleton(classType: PatcherViewModel),
|
|
LazySingleton(classType: AppSelectorViewModel),
|
|
LazySingleton(classType: PatchesSelectorViewModel),
|
|
LazySingleton(classType: InstallerViewModel),
|
|
LazySingleton(
|
|
classType: ThemeService,
|
|
resolveUsing: ThemeService.getInstance,
|
|
),
|
|
],
|
|
)
|
|
class AppSetup {}
|