diff --git a/lib/ui/views/patcher/patcher_view.dart b/lib/ui/views/patcher/patcher_view.dart index 39b86d03..b41c50c0 100644 --- a/lib/ui/views/patcher/patcher_view.dart +++ b/lib/ui/views/patcher/patcher_view.dart @@ -18,7 +18,7 @@ class PatcherView extends StatelessWidget { viewModelBuilder: () => locator(), builder: (context, model, child) => Scaffold( floatingActionButton: Visibility( - visible: locator().hideFabButton, + visible: locator().showFabButton, child: FloatingActionButton.extended( onPressed: () => {}, label: I18nText('patcherView.fabButton'), diff --git a/lib/ui/views/patcher/patcher_viewmodel.dart b/lib/ui/views/patcher/patcher_viewmodel.dart index 8410f960..959010ec 100644 --- a/lib/ui/views/patcher/patcher_viewmodel.dart +++ b/lib/ui/views/patcher/patcher_viewmodel.dart @@ -6,7 +6,7 @@ import 'package:stacked_services/stacked_services.dart'; class PatcherViewModel extends BaseViewModel { final _navigationService = locator(); bool dimPatchCard = true; - bool hideFabButton = true; + bool showFabButton = false; void navigateToAppSelector() { _navigationService.navigateTo(Routes.appSelectorView); diff --git a/lib/ui/views/patches_selector/patches_selector_viewmodel.dart b/lib/ui/views/patches_selector/patches_selector_viewmodel.dart index 57f01f4e..1bb00dad 100644 --- a/lib/ui/views/patches_selector/patches_selector_viewmodel.dart +++ b/lib/ui/views/patches_selector/patches_selector_viewmodel.dart @@ -33,8 +33,8 @@ class PatchesSelectorViewModel extends BaseViewModel { } } } - locator().hideFabButton = - selectedPatches.isEmpty ? true : false; + locator().showFabButton = + selectedPatches.isNotEmpty ? true : false; locator().notifyListeners(); } }