Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update order

Vishnu Mohandas6c25012e6f6f
diff --git a/lib/ui/viewer/actions/file_selection_actions_widget.dart b/lib/ui/viewer/actions/file_selection_actions_widget.dart
index 74d93e4b70..50d6f349bb 100644
--- a/lib/ui/viewer/actions/file_selection_actions_widget.dart
+++ b/lib/ui/viewer/actions/file_selection_actions_widget.dart
@@ -134,18 +134,6 @@ class _FileSelectionActionsWidgetState
}
}
- items.add(
- SelectionActionButton(
- labelText: S.of(context).share,
- icon: Icons.adaptive.share_outlined,
- onTap: () => shareSelected(
- context,
- shareButtonKey,
- widget.selectedFiles.files.toList(),
- ),
- ),
- );
-
final showUploadIcon = widget.type == GalleryType.localFolder &&
split.ownedByCurrentUser.isEmpty;
if (widget.type.showAddToAlbum()) {
@@ -320,6 +308,18 @@ class _FileSelectionActionsWidgetState
);
}
+ items.add(
+ SelectionActionButton(
+ labelText: S.of(context).share,
+ icon: Icons.adaptive.share_outlined,
+ onTap: () => shareSelected(
+ context,
+ shareButtonKey,
+ widget.selectedFiles.files.toList(),
+ ),
+ ),
+ );
+
if (items.isNotEmpty) {
final scrollController = ScrollController();
// h4ck: https://github.com/flutter/flutter/issues/57920#issuecomment-893970066