[mob][photos] Hide share icon when collection is from Collect Photos

This commit is contained in:
Aman Raj Singh Mourya
2024-08-21 16:23:13 +05:30
parent 093b736a3b
commit bbaabeef38
2 changed files with 4 additions and 1 deletions

View File

@@ -106,6 +106,7 @@ class CollectionPage extends StatelessWidget {
c.collection.displayName,
_selectedFiles,
collection: c.collection,
isFromCollectPhotos: isFromCollectPhotos,
),
),
floatingActionButton: isFromCollectPhotos

View File

@@ -52,6 +52,7 @@ class GalleryAppBarWidget extends StatefulWidget {
final SelectedFiles selectedFiles;
final DeviceCollection? deviceCollection;
final Collection? collection;
final bool isFromCollectPhotos;
const GalleryAppBarWidget(
this.type,
@@ -60,6 +61,7 @@ class GalleryAppBarWidget extends StatefulWidget {
Key? key,
this.deviceCollection,
this.collection,
this.isFromCollectPhotos = false,
}) : super(key: key);
@override
@@ -306,7 +308,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
),
);
}
if (galleryType.isSharable()) {
if (galleryType.isSharable() && !widget.isFromCollectPhotos) {
actions.add(
Tooltip(
message: "Share",