π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use dark placeholder for memory backdrop
ashilkn5cf3d8b848d4
diff --git a/mobile/apps/photos/changes/memories-dark-loading-placeholder.md b/mobile/apps/photos/changes/memories-dark-loading-placeholder.mdnew file mode 100644index 0000000000..a11de11927--- /dev/null+++ b/mobile/apps/photos/changes/memories-dark-loading-placeholder.md@@ -0,0 +1 @@+- Prevented a pale flash while full-screen memories load their blurred backdrop.diff --git a/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart b/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dartindex 0154e5aa3b..e9027fdbb6 100644--- a/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart+++ b/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart@@ -1075,6 +1075,7 @@ class _MemoryBlur extends StatelessWidget {imageFilter: ImageFilter.blur(sigmaX: 100, sigmaY: 100),child: ThumbnailWidget(currentFile,+ placeholderColor: Colors.black,shouldShowSyncStatus: false,shouldShowFavoriteIcon: false,shouldShowVideoOverlayIcon: false,diff --git a/mobile/apps/photos/lib/ui/viewer/file/file_icons_widget.dart b/mobile/apps/photos/lib/ui/viewer/file/file_icons_widget.dartindex 6db250c7e0..e2076723ea 100644--- a/mobile/apps/photos/lib/ui/viewer/file/file_icons_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/file/file_icons_widget.dart@@ -9,13 +9,15 @@ import 'package:photos/models/file/trash_file.dart';import 'package:photos/ui/sharing/user_avator_widget.dart';class ThumbnailPlaceHolder extends StatelessWidget {- const ThumbnailPlaceHolder({super.key});+ final Color? color;++ const ThumbnailPlaceHolder({super.key, this.color});@overrideWidget build(BuildContext context) {return Container(alignment: Alignment.center,- color: context.componentColors.fillDark,+ color: color ?? context.componentColors.fillDark,);}}diff --git a/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart b/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dartindex 01c091c82d..0855f4f747 100644--- a/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/file/thumbnail_widget.dart@@ -46,6 +46,7 @@ class ThumbnailWidget extends StatefulWidget {final bool shouldShowOwnerAvatar;final AvatarType ownerAvatarType;final bool shouldShowFavoriteIcon;+ final Color? placeholderColor;///On video thumbnails, shows the video duration if true. If false,///shows a centered play icon.@@ -67,6 +68,7 @@ class ThumbnailWidget extends StatefulWidget {this.thumbnailSize = thumbnailSmallSize,this.useRequestedThumbnailSizeForLocalCache = false,this.shouldShowFavoriteIcon = true,+ this.placeholderColor,this.shouldShowVideoDuration = false,this.shouldShowVideoOverlayIcon = true,}) : super(key: key ?? Key(file.tag));@@ -239,7 +241,7 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {: Stack(fit: StackFit.expand, children: contentChildren);}final List<Widget> viewChildren = [- const ThumbnailPlaceHolder(),+ ThumbnailPlaceHolder(color: widget.placeholderColor),content ?? const SizedBox(),];if (!widget.rawThumbnail && widget.file.fileType == FileType.video) {