Skip to content

armgit / ente

Public Imported from GitHub
0

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

Refine latest comment transitions

ashilknb65bd0151265
diff --git a/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dart b/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dart
index 6ff07a83b5..3337ddf8d3 100644
--- a/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/file_social_overlay.dart
@@ -421,7 +421,7 @@ class _FileSocialOverlayState extends State<FileSocialOverlay> {
children: [
AnimatedSwitcher(
duration: _motionDuration(context, 220),
- reverseDuration: _motionDuration(context, 160),
+ reverseDuration: Duration.zero,
switchInCurve: Curves.easeOutCubic,
switchOutCurve: Curves.easeIn,
transitionBuilder: (child, animation) => FadeTransition(
@@ -541,21 +541,11 @@ class _LatestCommentPill extends StatelessWidget {
horizontal: 16,
vertical: 12,
),
- child: AnimatedSwitcher(
- duration: _motionDuration(context, 180),
- switchInCurve: const Interval(0.25, 1, curve: Curves.easeOut),
- switchOutCurve: const Interval(0.6, 1, curve: Curves.easeIn),
- layoutBuilder: (currentChild, previousChildren) => Stack(
- alignment: AlignmentDirectional.centerStart,
- children: [...previousChildren, ?currentChild],
- ),
- child: Text(
- comment.data,
- key: ValueKey(comment.id),
- maxLines: 1,
- overflow: TextOverflow.ellipsis,
- style: textStyle,
- ),
+ child: Text(
+ comment.data,
+ maxLines: 1,
+ overflow: TextOverflow.ellipsis,
+ style: textStyle,
),
),
),