Skip to content

armgit / ente

Public Imported from GitHub
0

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

Minor UI fix

ashilkn8ad1b94b8721
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/component/group/group_header_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/component/group/group_header_widget.dart
index dd6b0dceb4..1ca10d2550 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/component/group/group_header_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/component/group/group_header_widget.dart
@@ -14,6 +14,7 @@ class GroupHeaderWidget extends StatefulWidget {
final SelectedFiles? selectedFiles;
final bool showSelectAll;
final bool showGallerySettingCTA;
+ final bool showTrailingIcons;
const GroupHeaderWidget({
super.key,
@@ -24,6 +25,7 @@ class GroupHeaderWidget extends StatefulWidget {
required this.showSelectAll,
this.showGallerySettingCTA = false,
this.height,
+ this.showTrailingIcons = true,
});
@override
@@ -97,43 +99,47 @@ class _GroupHeaderWidgetState extends State<GroupHeaderWidget> {
Expanded(child: Container()),
!widget.showSelectAll
? const SizedBox.shrink()
- : GestureDetector(
- behavior: HitTestBehavior.translucent,
- child: ValueListenableBuilder(
- valueListenable: _areAllFromGroupSelectedNotifier,
- builder: (context, dynamic value, _) {
- return value
- ? const Icon(
- Icons.check_circle,
- size: 18,
- )
- : Icon(
- Icons.check_circle_outlined,
- color: colorScheme.strokeMuted,
- size: 18,
- );
- },
- ),
- onTap: () {
- widget.selectedFiles?.toggleGroupSelection(
- widget.filesInGroup.toSet(),
- );
- },
- ),
+ : widget.showTrailingIcons
+ ? GestureDetector(
+ behavior: HitTestBehavior.translucent,
+ child: ValueListenableBuilder(
+ valueListenable: _areAllFromGroupSelectedNotifier,
+ builder: (context, dynamic value, _) {
+ return value
+ ? const Icon(
+ Icons.check_circle,
+ size: 18,
+ )
+ : Icon(
+ Icons.check_circle_outlined,
+ color: colorScheme.strokeMuted,
+ size: 18,
+ );
+ },
+ ),
+ onTap: () {
+ widget.selectedFiles?.toggleGroupSelection(
+ widget.filesInGroup.toSet(),
+ );
+ },
+ )
+ : const SizedBox.shrink(),
widget.showGallerySettingCTA
? const SizedBox(width: 8)
: const SizedBox.shrink(),
widget.showGallerySettingCTA
- ? GestureDetector(
- onTap: () => _showLayoutSettingsOverflowMenu(context),
- child: Padding(
- padding: const EdgeInsets.all(4),
- child: Icon(
- Icons.more_vert_outlined,
- color: colorScheme.strokeBase,
- ),
- ),
- )
+ ? widget.showTrailingIcons
+ ? GestureDetector(
+ onTap: () => _showLayoutSettingsOverflowMenu(context),
+ child: Padding(
+ padding: const EdgeInsets.all(4),
+ child: Icon(
+ Icons.more_vert_outlined,
+ color: colorScheme.strokeBase,
+ ),
+ ),
+ )
+ : const SizedBox.shrink()
: const SizedBox.shrink(),
const SizedBox(width: 12),
],
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
index 577ad00cdd..21b6486975 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart
@@ -853,6 +853,7 @@ class _PinnedGroupHeaderState extends State<PinnedGroupHeader> {
selectedFiles: widget.selectedFiles,
showSelectAll: widget.showSelectAll,
showGallerySettingCTA: widget.showGallerySettingsCTA,
+ showTrailingIcons: !inUse,
),
),
),