From c318162feb649bf64d3f71f78d3c42fadf704cef Mon Sep 17 00:00:00 2001 From: ashilkn Date: Tue, 15 Jul 2025 12:48:07 +0530 Subject: [PATCH] Add solid color for background of PinnedGroupHeader --- .../photos/lib/ui/viewer/gallery/gallery.dart | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart index 8536b24617..6b77429441 100644 --- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart +++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery.dart @@ -13,6 +13,7 @@ import 'package:photos/models/file_load_result.dart'; import "package:photos/models/gallery/gallery_sections.dart"; import 'package:photos/models/selected_files.dart'; import "package:photos/service_locator.dart"; +import "package:photos/theme/ente_theme.dart"; import 'package:photos/ui/common/loading_widget.dart'; import "package:photos/ui/viewer/gallery/component/group/group_header_widget.dart"; import "package:photos/ui/viewer/gallery/component/group/type.dart"; @@ -668,19 +669,22 @@ class _PinnedGroupHeaderState extends State { @override Widget build(BuildContext context) { return currentGroupId != null - ? GroupHeaderWidget( - title: widget.galleryGroups.groupIdToheaderDataMap[currentGroupId!]! - .groupType - .getTitle( - context, - widget.galleryGroups.groupIDToFilesMap[currentGroupId]!.first, + ? ColoredBox( + color: getEnteColorScheme(context).backgroundBase, + child: GroupHeaderWidget( + title: widget.galleryGroups + .groupIdToheaderDataMap[currentGroupId!]!.groupType + .getTitle( + context, + widget.galleryGroups.groupIDToFilesMap[currentGroupId]!.first, + ), + gridSize: localSettings.getPhotoGridSize(), + height: widget.galleryGroups.headerExtent, + filesInGroup: + widget.galleryGroups.groupIDToFilesMap[currentGroupId!]!, + selectedFiles: widget.selectedFiles, + showSelectAllByDefault: widget.showSelectAllByDefault, ), - gridSize: localSettings.getPhotoGridSize(), - height: widget.galleryGroups.headerExtent, - filesInGroup: - widget.galleryGroups.groupIDToFilesMap[currentGroupId!]!, - selectedFiles: widget.selectedFiles, - showSelectAllByDefault: widget.showSelectAllByDefault, ) : const SizedBox.shrink(); }