mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 12:47:37 +02:00
refactor: major theming overhual, fix light theme.
This commit is contained in:
@ -9,18 +9,24 @@ import 'package:revanced_manager/ui/views/patches_selector/patches_selector_view
|
||||
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: HomeView),
|
||||
MaterialRoute(page: AppSelectorView),
|
||||
MaterialRoute(page: PatcherView),
|
||||
MaterialRoute(page: PatchesSelectorView),
|
||||
MaterialRoute(page: SettingsView)
|
||||
], dependencies: [
|
||||
LazySingleton(classType: NavigationService),
|
||||
LazySingleton(classType: PatcherAPI),
|
||||
LazySingleton(classType: PatcherViewModel),
|
||||
LazySingleton(classType: AppSelectorViewModel),
|
||||
LazySingleton(classType: PatchesSelectorViewModel),
|
||||
])
|
||||
@StackedApp(
|
||||
routes: [
|
||||
MaterialRoute(page: HomeView),
|
||||
MaterialRoute(page: AppSelectorView),
|
||||
MaterialRoute(page: PatcherView),
|
||||
MaterialRoute(page: PatchesSelectorView),
|
||||
MaterialRoute(page: SettingsView)
|
||||
],
|
||||
dependencies: [
|
||||
LazySingleton(classType: NavigationService),
|
||||
LazySingleton(classType: PatcherAPI),
|
||||
LazySingleton(classType: PatcherViewModel),
|
||||
LazySingleton(classType: AppSelectorViewModel),
|
||||
LazySingleton(classType: PatchesSelectorViewModel),
|
||||
LazySingleton(
|
||||
classType: ThemeService, resolveUsing: ThemeService.getInstance),
|
||||
],
|
||||
)
|
||||
class AppSetup {}
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
import 'package:stacked_core/stacked_core.dart';
|
||||
import 'package:stacked_services/src/navigation/navigation_service.dart';
|
||||
import 'package:stacked_themes/src/theme_service.dart';
|
||||
|
||||
import '../services/patcher_api.dart';
|
||||
import '../ui/views/app_selector/app_selector_viewmodel.dart';
|
||||
@ -28,4 +29,5 @@ Future<void> setupLocator(
|
||||
locator.registerLazySingleton(() => PatcherViewModel());
|
||||
locator.registerLazySingleton(() => AppSelectorViewModel());
|
||||
locator.registerLazySingleton(() => PatchesSelectorViewModel());
|
||||
locator.registerLazySingleton(() => ThemeService.getInstance());
|
||||
}
|
||||
|
Reference in New Issue
Block a user