Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add animation between the blurred thumbnails of items of a memory as a workaround for the flash between items when transitioning

ashilknaa4b44f8bd05
diff --git a/mobile/lib/ui/home/memories/full_screen_memory.dart b/mobile/lib/ui/home/memories/full_screen_memory.dart
index 032a6f511b..f9e54eb519 100644
--- a/mobile/lib/ui/home/memories/full_screen_memory.dart
+++ b/mobile/lib/ui/home/memories/full_screen_memory.dart
@@ -551,9 +551,12 @@ class MemoryBackDrop extends StatelessWidget {
currentFile.fileType == FileType.livePhoto) {
return const SizedBox.shrink();
}
- return AnimatedContainer(
- duration: const Duration(milliseconds: 200),
+ return AnimatedSwitcher(
+ duration: const Duration(milliseconds: 750),
+ switchInCurve: Curves.easeOutExpo,
+ switchOutCurve: Curves.easeInExpo,
child: ImageFiltered(
+ key: ValueKey(inheritedData.indexNotifier.value),
imageFilter: ImageFilter.blur(
sigmaX: 100,
sigmaY: 100,