Skip to content

armgit / ente

Public Imported from GitHub
0

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

fixup! [mobile] add animated digit component

Priyanshu Dangare5972bb668fbd
diff --git a/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page_v2.dart b/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page_v2.dart
index fdcea30abe..ceec6c2f72 100644
--- a/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page_v2.dart
+++ b/mobile/apps/photos/lib/ui/viewer/people/memory_lane_page_v2.dart
@@ -562,34 +562,31 @@ class _MemoryLanePageV2State extends State<MemoryLanePageV2> {
constraints: const BoxConstraints(minHeight: 48),
child: Align(
alignment: Alignment.bottomCenter,
- child: Padding(
- padding: EdgeInsets.symmetric(
- horizontal: screenSize.width * 0.16,
- ),
- child: Row(
- mainAxisSize: MainAxisSize.min,
- crossAxisAlignment:
- CrossAxisAlignment.baseline,
- textBaseline: TextBaseline.alphabetic,
- spacing: screenSize.width * 0.02,
- children: [
- for (
- var index = 0;
- index < ageCaptionParts.length;
- index++
- ) ...[
- if (index > 0)
- _MemoryLaneAnimatedDigit(value: age),
- Flexible(
- child: Text(
- ageCaptionParts[index],
- style: darkTheme.textTheme.bodyMuted,
- textAlign: TextAlign.center,
- ),
+ child: Row(
+ mainAxisSize: MainAxisSize.min,
+ crossAxisAlignment: CrossAxisAlignment.baseline,
+ textBaseline: TextBaseline.alphabetic,
+ spacing: screenSize.width * 0.02,
+ children: [
+ for (
+ var index = 0;
+ index < ageCaptionParts.length;
+ index++
+ ) ...[
+ if (index > 0)
+ _MemoryLaneAnimatedDigit(value: age),
+ Flexible(
+ child: Text(
+ ageCaptionParts[index],
+ style: darkTheme.textTheme.bodyMuted,
+ textAlign: TextAlign.center,
+ softWrap: false,
+ maxLines: 1,
+ overflow: TextOverflow.ellipsis,
),
- ],
+ ),
],
- ),
+ ],
),
),
),