Vishnu Mohandas 1 rok temu
rodzic
commit
6c25012e6f

+ 12 - 12
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 &&
     final showUploadIcon = widget.type == GalleryType.localFolder &&
         split.ownedByCurrentUser.isEmpty;
         split.ownedByCurrentUser.isEmpty;
     if (widget.type.showAddToAlbum()) {
     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) {
     if (items.isNotEmpty) {
       final scrollController = ScrollController();
       final scrollController = ScrollController();
       // h4ck: https://github.com/flutter/flutter/issues/57920#issuecomment-893970066
       // h4ck: https://github.com/flutter/flutter/issues/57920#issuecomment-893970066