mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 04:37:37 +02:00
feat: add installer and enable app selection from storage (#2)
This commit is contained in:
@ -3,12 +3,11 @@ import 'package:flutter_i18n/flutter_i18n.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:revanced_manager/app/app.locator.dart';
|
||||
import 'package:revanced_manager/theme.dart';
|
||||
import 'package:revanced_manager/ui/views/patcher/patcher_viewmodel.dart';
|
||||
import 'package:revanced_manager/ui/widgets/app_selector_card.dart';
|
||||
import 'package:revanced_manager/ui/widgets/patch_selector_card.dart';
|
||||
import 'package:stacked/stacked.dart';
|
||||
|
||||
import 'patcher_viewmodel.dart';
|
||||
|
||||
class PatcherView extends StatelessWidget {
|
||||
const PatcherView({Key? key}) : super(key: key);
|
||||
|
||||
@ -21,7 +20,7 @@ class PatcherView extends StatelessWidget {
|
||||
floatingActionButton: Visibility(
|
||||
visible: locator<PatcherViewModel>().showFabButton,
|
||||
child: FloatingActionButton.extended(
|
||||
onPressed: () => {},
|
||||
onPressed: () => model.navigateToInstaller(),
|
||||
label: I18nText('patcherView.fabButton'),
|
||||
icon: const Icon(Icons.build),
|
||||
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||
|
@ -15,4 +15,8 @@ class PatcherViewModel extends BaseViewModel {
|
||||
void navigateToPatchesSelector() {
|
||||
_navigationService.navigateTo(Routes.patchesSelectorView);
|
||||
}
|
||||
|
||||
void navigateToInstaller() {
|
||||
_navigationService.navigateTo(Routes.installerView);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user