π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Add an new instance varialbe in ThumbnailWidget which can be optionally passed as true to get the thumbnail without any overlay icons
ashilkna099869ecc7f
diff --git a/mobile/lib/ui/viewer/file/thumbnail_widget.dart b/mobile/lib/ui/viewer/file/thumbnail_widget.dartindex e86c0a36a8..e380058304 100644--- a/mobile/lib/ui/viewer/file/thumbnail_widget.dart+++ b/mobile/lib/ui/viewer/file/thumbnail_widget.dart@@ -27,6 +27,8 @@ class ThumbnailWidget extends StatefulWidget {final EnteFile file;final BoxFit fit;+ /// Returns ThumbnailWidget without any overlay icons if true.+ final bool rawThumbnail;final bool shouldShowSyncStatus;final bool shouldShowArchiveStatus;final bool shouldShowPinIcon;@@ -46,6 +48,7 @@ class ThumbnailWidget extends StatefulWidget {this.file, {Key? key,this.fit = BoxFit.cover,+ this.rawThumbnail = false,this.shouldShowSyncStatus = true,this.shouldShowLivePhotoOverlay = false,this.shouldShowArchiveStatus = false,@@ -137,6 +140,9 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {// If yes, parent thumbnail widget can be statelessWidget? content;if (image != null) {+ if (widget.rawThumbnail) {+ return image;+ }final List<Widget> contentChildren = [image];if (widget.shouldShowFavoriteIcon) {if (FavoritesService.instance.isFavoriteCache(diff --git a/mobile/lib/ui/viewer/people/cropped_face_image_view.dart b/mobile/lib/ui/viewer/people/cropped_face_image_view.dartindex a76dbe5f0a..1b8076ff23 100644--- a/mobile/lib/ui/viewer/people/cropped_face_image_view.dart+++ b/mobile/lib/ui/viewer/people/cropped_face_image_view.dart@@ -96,6 +96,7 @@ class CroppedFaceImageView extends StatelessWidget {}return ThumbnailWidget(enteFile,+ rawThumbnail: true,);}},diff --git a/mobile/lib/ui/viewer/search/result/person_face_widget.dart b/mobile/lib/ui/viewer/search/result/person_face_widget.dartindex e7fcf4b889..c7f427bf7c 100644--- a/mobile/lib/ui/viewer/search/result/person_face_widget.dart+++ b/mobile/lib/ui/viewer/search/result/person_face_widget.dart@@ -76,6 +76,7 @@ class PersonFaceWidget extends StatelessWidget {return thumbnailFallback? ThumbnailWidget(file,+ rawThumbnail: true,): const EnteLoadingWidget();}@@ -100,6 +101,7 @@ class PersonFaceWidget extends StatelessWidget {return thumbnailFallback? ThumbnailWidget(file,+ rawThumbnail: true,): const EnteLoadingWidget();}