From 9938db6af4b83e28acd232ac668202c7ea29221c Mon Sep 17 00:00:00 2001 From: AmanRajSinghMourya Date: Wed, 9 Jul 2025 21:27:44 +0530 Subject: [PATCH 1/2] Fix hero animation --- mobile/apps/photos/lib/ui/collections/flex_grid_view.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mobile/apps/photos/lib/ui/collections/flex_grid_view.dart b/mobile/apps/photos/lib/ui/collections/flex_grid_view.dart index 2267833b1a..aa66ae5d46 100644 --- a/mobile/apps/photos/lib/ui/collections/flex_grid_view.dart +++ b/mobile/apps/photos/lib/ui/collections/flex_grid_view.dart @@ -4,6 +4,7 @@ import 'dart:math'; import 'package:flutter/material.dart'; import "package:flutter/services.dart"; import "package:logging/logging.dart"; +import "package:photos/core/configuration.dart"; import "package:photos/core/event_bus.dart"; import "package:photos/events/clear_album_selections_event.dart"; import "package:photos/generated/l10n.dart"; @@ -98,10 +99,16 @@ class _CollectionsFlexiGridViewWidgetState Future _navigateToCollectionPage(Collection c) async { final thumbnail = await CollectionsService.instance.getCover(c); + final bool isOwner = c.isOwner(Configuration.instance.getUserID()!); + final String tagPrefix = (isOwner ? "collection" : "shared_collection") + + widget.tag + + "_" + + c.id.toString(); // ignore: unawaited_futures routeToPage( context, CollectionPage( + tagPrefix: tagPrefix, CollectionWithThumbnail(c, thumbnail), ), ); From 2595fdebae392c6716225900678be37aede6fb4f Mon Sep 17 00:00:00 2001 From: AmanRajSinghMourya Date: Wed, 9 Jul 2025 21:47:10 +0530 Subject: [PATCH 2/2] Reduce corner smoothing from 1.0 -> 0.6 --- mobile/apps/photos/lib/ui/collections/album/row_item.dart | 2 +- .../photos/lib/ui/collections/device/device_folder_item.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/apps/photos/lib/ui/collections/album/row_item.dart b/mobile/apps/photos/lib/ui/collections/album/row_item.dart index ffaaf04421..48aff48c6a 100644 --- a/mobile/apps/photos/lib/ui/collections/album/row_item.dart +++ b/mobile/apps/photos/lib/ui/collections/album/row_item.dart @@ -27,7 +27,7 @@ class AlbumRowItemWidget extends StatelessWidget { final SelectedAlbums? selectedAlbums; static const _borderWidth = 1.0; static const _cornerRadius = 12.0; - static const _cornerSmoothing = 1.0; + static const _cornerSmoothing = 0.6; const AlbumRowItemWidget( this.c, diff --git a/mobile/apps/photos/lib/ui/collections/device/device_folder_item.dart b/mobile/apps/photos/lib/ui/collections/device/device_folder_item.dart index e7817b169e..cf5809dc71 100644 --- a/mobile/apps/photos/lib/ui/collections/device/device_folder_item.dart +++ b/mobile/apps/photos/lib/ui/collections/device/device_folder_item.dart @@ -13,7 +13,7 @@ class DeviceFolderItem extends StatelessWidget { final double sideOfThumbnail; static const _cornerRadius = 12.0; - static const _cornerSmoothing = 1.0; + static const _cornerSmoothing = 0.6; static const _borderWidth = 1.0; const DeviceFolderItem(