Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add repaint boundary over each gird item in gallery

ashilkn1648f62da64b
diff --git a/mobile/apps/photos/lib/models/gallery/gallery_groups.dart b/mobile/apps/photos/lib/models/gallery/gallery_groups.dart
index a42ba360e0..3bb9e70c1d 100644
--- a/mobile/apps/photos/lib/models/gallery/gallery_groups.dart
+++ b/mobile/apps/photos/lib/models/gallery/gallery_groups.dart
@@ -224,18 +224,20 @@ class GalleryGroups {
int i = 0;
while (!endOfListReached) {
gridRowChildren.add(
- GalleryFileWidget(
+ RepaintBoundary(
key: ValueKey(
tagPrefix +
filesInGroup[firstIndexOfRowWrtFilesInGroup + i]
.tag,
),
- file: filesInGroup[firstIndexOfRowWrtFilesInGroup + i],
- selectedFiles: selectedFiles,
- limitSelectionToOne: limitSelectionToOne,
- tag: tagPrefix,
- photoGridSize: crossAxisCount,
- currentUserID: currentUserID,
+ child: GalleryFileWidget(
+ file: filesInGroup[firstIndexOfRowWrtFilesInGroup + i],
+ selectedFiles: selectedFiles,
+ limitSelectionToOne: limitSelectionToOne,
+ tag: tagPrefix,
+ photoGridSize: crossAxisCount,
+ currentUserID: currentUserID,
+ ),
),
);
@@ -247,18 +249,20 @@ class GalleryGroups {
} else {
for (int i = 0; i < crossAxisCount; i++) {
gridRowChildren.add(
- GalleryFileWidget(
+ RepaintBoundary(
key: ValueKey(
tagPrefix +
filesInGroup[firstIndexOfRowWrtFilesInGroup + i]
.tag,
),
- file: filesInGroup[firstIndexOfRowWrtFilesInGroup + i],
- selectedFiles: selectedFiles,
- limitSelectionToOne: limitSelectionToOne,
- tag: tagPrefix,
- photoGridSize: crossAxisCount,
- currentUserID: currentUserID,
+ child: GalleryFileWidget(
+ file: filesInGroup[firstIndexOfRowWrtFilesInGroup + i],
+ selectedFiles: selectedFiles,
+ limitSelectionToOne: limitSelectionToOne,
+ tag: tagPrefix,
+ photoGridSize: crossAxisCount,
+ currentUserID: currentUserID,
+ ),
),
);
}