revanced-manager/lib/ui/views/patcher/patcher_viewmodel.dart
Aunali321 769ff72f98
refactor: migrate to stacked architecture.
* feat: mostly done stacked architecture.

* refactor: migration to stacked architecture.
2022-08-06 17:43:28 +05:30

12 lines
429 B
Dart

import 'package:revanced_manager_flutter/app/app.locator.dart';
import 'package:revanced_manager_flutter/app/app.router.dart';
import 'package:stacked/stacked.dart';
import 'package:stacked_services/stacked_services.dart';
class PatcherViewModel extends BaseViewModel {
final _naviagtionService = locator<NavigationService>();
void navigateToAppSelector() {
_naviagtionService.navigateTo(Routes.appSelectorView);
}
}