mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 04:37:37 +02:00
feat: Patches Selector Screen.
This commit is contained in:
@ -43,7 +43,9 @@ class PatcherView extends StatelessWidget {
|
||||
onPressed: model.navigateToAppSelector,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
const PatchSelectorCard(),
|
||||
PatchSelectorCard(
|
||||
onPressed: model.navigateToPatchesSelector,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
@ -4,9 +4,13 @@ import 'package:stacked/stacked.dart';
|
||||
import 'package:stacked_services/stacked_services.dart';
|
||||
|
||||
class PatcherViewModel extends BaseViewModel {
|
||||
final _naviagtionService = locator<NavigationService>();
|
||||
final _navigationService = locator<NavigationService>();
|
||||
|
||||
void navigateToAppSelector() {
|
||||
_naviagtionService.navigateTo(Routes.appSelectorView);
|
||||
_navigationService.navigateTo(Routes.appSelectorView);
|
||||
}
|
||||
|
||||
void navigateToPatchesSelector() {
|
||||
_navigationService.navigateTo(Routes.patchesSelectorView);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user