From f80f867976be460859064bc84e929bdc685002a4 Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Date: Fri, 19 Jan 2024 17:40:10 +0000 Subject: [PATCH] fix(mobile): stack button not in bottom app bar (#6497) Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- mobile/lib/modules/home/ui/control_bottom_app_bar.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/lib/modules/home/ui/control_bottom_app_bar.dart b/mobile/lib/modules/home/ui/control_bottom_app_bar.dart index 119a94d9e7..12c06eaefd 100644 --- a/mobile/lib/modules/home/ui/control_bottom_app_bar.dart +++ b/mobile/lib/modules/home/ui/control_bottom_app_bar.dart @@ -197,7 +197,7 @@ class ControlBottomAppBar extends ConsumerWidget { label: "control_bottom_app_bar_edit_location".tr(), onPressed: enabled ? onEditLocation : null, ), - if (!hasLocal && + if (!selectionAssetState.hasLocal && selectionAssetState.selectedCount > 1 && onStack != null) ControlBoxButton( @@ -211,7 +211,7 @@ class ControlBottomAppBar extends ConsumerWidget { label: 'album_viewer_appbar_share_remove'.tr(), onPressed: enabled ? onRemoveFromAlbum : null, ), - if (hasLocal) + if (selectionAssetState.hasLocal) ControlBoxButton( iconData: Icons.backup_outlined, label: "Upload",