revanced-manager/lib/ui/views/patcher/patcher_viewmodel.dart

23 lines
669 B
Dart
Raw Normal View History

2022-08-06 23:35:35 +02:00
import 'package:revanced_manager/app/app.locator.dart';
import 'package:revanced_manager/app/app.router.dart';
import 'package:stacked/stacked.dart';
import 'package:stacked_services/stacked_services.dart';
class PatcherViewModel extends BaseViewModel {
2022-08-07 21:15:52 +02:00
final _navigationService = locator<NavigationService>();
2022-08-09 03:30:12 +02:00
bool dimPatchCard = true;
bool showFabButton = false;
void navigateToAppSelector() {
2022-08-07 21:15:52 +02:00
_navigationService.navigateTo(Routes.appSelectorView);
}
void navigateToPatchesSelector() {
_navigationService.navigateTo(Routes.patchesSelectorView);
}
void navigateToInstaller() {
_navigationService.navigateTo(Routes.installerView);
}
}