Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Move detail chips to bottom

laurensprieme516c17684ff
diff --git a/mobile/apps/photos/lib/ui/wrapped/cards/curation_card_content.dart b/mobile/apps/photos/lib/ui/wrapped/cards/curation_card_content.dart
index f9518e9748..f6345f7e32 100644
--- a/mobile/apps/photos/lib/ui/wrapped/cards/curation_card_content.dart
+++ b/mobile/apps/photos/lib/ui/wrapped/cards/curation_card_content.dart
@@ -108,14 +108,6 @@ class _FavoritesCardContentState extends State<_FavoritesCardContent> {
widget.textTheme.bodyMuted,
padding: const EdgeInsets.only(top: 12),
),
- if (detailChips.isNotEmpty) ...[
- const SizedBox(height: 18),
- _DetailChips(
- chips: detailChips,
- colorScheme: widget.colorScheme,
- textTheme: widget.textTheme,
- ),
- ],
const SizedBox(height: 22),
AnimatedSwitcher(
duration: const Duration(milliseconds: 420),
@@ -129,6 +121,14 @@ class _FavoritesCardContentState extends State<_FavoritesCardContent> {
),
),
),
+ if (detailChips.isNotEmpty) ...[
+ const SizedBox(height: 18),
+ _DetailChips(
+ chips: detailChips,
+ colorScheme: widget.colorScheme,
+ textTheme: widget.textTheme,
+ ),
+ ],
const Spacer(),
],
);
diff --git a/mobile/apps/photos/lib/ui/wrapped/cards/stats_card_content.dart b/mobile/apps/photos/lib/ui/wrapped/cards/stats_card_content.dart
index 00c3ee6d8e..db1770cf46 100644
--- a/mobile/apps/photos/lib/ui/wrapped/cards/stats_card_content.dart
+++ b/mobile/apps/photos/lib/ui/wrapped/cards/stats_card_content.dart
@@ -110,6 +110,13 @@ class _RhythmCardContent extends StatelessWidget {
textTheme.bodyMuted,
padding: const EdgeInsets.only(top: 12),
),
+ if (card.media.isNotEmpty) ...[
+ const SizedBox(height: 22),
+ _MediaRow(
+ media: card.media.take(3).toList(growable: false),
+ colorScheme: colorScheme,
+ ),
+ ],
if (chips.isNotEmpty) ...[
const SizedBox(height: 18),
_DetailChips(
@@ -118,13 +125,6 @@ class _RhythmCardContent extends StatelessWidget {
textTheme: textTheme,
),
],
- if (card.media.isNotEmpty) ...[
- const SizedBox(height: 22),
- _MediaRow(
- media: card.media.take(3).toList(growable: false),
- colorScheme: colorScheme,
- ),
- ],
const Spacer(),
],
);
@@ -159,6 +159,11 @@ class _BusiestDayCardContent extends StatelessWidget {
textTheme.bodyMuted,
padding: const EdgeInsets.only(top: 12),
),
+ const SizedBox(height: 22),
+ _MediaGrid(
+ media: card.media.take(6).toList(growable: false),
+ colorScheme: colorScheme,
+ ),
if (chips.isNotEmpty) ...[
const SizedBox(height: 18),
_DetailChips(
@@ -167,11 +172,6 @@ class _BusiestDayCardContent extends StatelessWidget {
textTheme: textTheme,
),
],
- const SizedBox(height: 22),
- _MediaGrid(
- media: card.media.take(6).toList(growable: false),
- colorScheme: colorScheme,
- ),
const Spacer(),
],
);