mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 04:37:37 +02:00
fix: hide FAB when no patches selected.
This commit is contained in:
@ -18,7 +18,7 @@ class PatcherView extends StatelessWidget {
|
||||
viewModelBuilder: () => locator<PatcherViewModel>(),
|
||||
builder: (context, model, child) => Scaffold(
|
||||
floatingActionButton: Visibility(
|
||||
visible: locator<PatcherViewModel>().hideFabButton,
|
||||
visible: locator<PatcherViewModel>().showFabButton,
|
||||
child: FloatingActionButton.extended(
|
||||
onPressed: () => {},
|
||||
label: I18nText('patcherView.fabButton'),
|
||||
|
@ -6,7 +6,7 @@ import 'package:stacked_services/stacked_services.dart';
|
||||
class PatcherViewModel extends BaseViewModel {
|
||||
final _navigationService = locator<NavigationService>();
|
||||
bool dimPatchCard = true;
|
||||
bool hideFabButton = true;
|
||||
bool showFabButton = false;
|
||||
|
||||
void navigateToAppSelector() {
|
||||
_navigationService.navigateTo(Routes.appSelectorView);
|
||||
|
Reference in New Issue
Block a user