Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add easier share icon to the shared collections

laurenspriem1da2e083798c
diff --git a/mobile/apps/photos/lib/ui/tabs/shared_collections_tab.dart b/mobile/apps/photos/lib/ui/tabs/shared_collections_tab.dart
index 4903cd4eeb..4176a200a8 100644
--- a/mobile/apps/photos/lib/ui/tabs/shared_collections_tab.dart
+++ b/mobile/apps/photos/lib/ui/tabs/shared_collections_tab.dart
@@ -182,10 +182,35 @@ class _SharedCollectionsTabState extends State<SharedCollectionsTab>
: null,
Hero(tag: "incoming", child: sharedWithYou),
trailingWidget: collections.incoming.isNotEmpty
- ? IconButtonWidget(
- icon: Icons.chevron_right,
- iconButtonType: IconButtonType.secondary,
- iconColor: colorTheme.blurStrokePressed,
+ ? Row(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ IconButtonWidget(
+ icon: Icons.search,
+ iconButtonType: IconButtonType.secondary,
+ iconColor: colorTheme.blurStrokePressed,
+ onTap: () {
+ unawaited(
+ routeToPage(
+ context,
+ CollectionListPage(
+ collections.incoming,
+ sectionType:
+ UISectionType.incomingCollections,
+ tag: "incoming",
+ appTitle: sharedWithYou,
+ startInSearchMode: true,
+ ),
+ ),
+ );
+ },
+ ),
+ IconButtonWidget(
+ icon: Icons.chevron_right,
+ iconButtonType: IconButtonType.secondary,
+ iconColor: colorTheme.blurStrokePressed,
+ ),
+ ],
)
: null,
),
@@ -241,10 +266,35 @@ class _SharedCollectionsTabState extends State<SharedCollectionsTab>
: null,
Hero(tag: "outgoing", child: sharedByYou),
trailingWidget: collections.outgoing.isNotEmpty
- ? IconButtonWidget(
- icon: Icons.chevron_right,
- iconButtonType: IconButtonType.secondary,
- iconColor: colorTheme.blurStrokePressed,
+ ? Row(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ IconButtonWidget(
+ icon: Icons.search,
+ iconButtonType: IconButtonType.secondary,
+ iconColor: colorTheme.blurStrokePressed,
+ onTap: () {
+ unawaited(
+ routeToPage(
+ context,
+ CollectionListPage(
+ collections.outgoing,
+ sectionType:
+ UISectionType.outgoingCollections,
+ tag: "outgoing",
+ appTitle: sharedByYou,
+ startInSearchMode: true,
+ ),
+ ),
+ );
+ },
+ ),
+ IconButtonWidget(
+ icon: Icons.chevron_right,
+ iconButtonType: IconButtonType.secondary,
+ iconColor: colorTheme.blurStrokePressed,
+ ),
+ ],
)
: null,
),