From 9a4664a8eab093d7dad5dd52fcd4b2cd85c23d48 Mon Sep 17 00:00:00 2001 From: Julien Martin Date: Thu, 24 Sep 2026 00:45:01 +0200 Subject: [PATCH] fix(ui): align right tile by reserving chevron space Co-authored-by: Cursor --- .../quotidien/couple_selector_bandeau.dart | 60 ++++++++++--------- 1 file changed, 33 insertions(+), 27 deletions(-) diff --git a/frontend/lib/widgets/quotidien/couple_selector_bandeau.dart b/frontend/lib/widgets/quotidien/couple_selector_bandeau.dart index fb5ed9c..b34aa00 100644 --- a/frontend/lib/widgets/quotidien/couple_selector_bandeau.dart +++ b/frontend/lib/widgets/quotidien/couple_selector_bandeau.dart @@ -147,18 +147,20 @@ class _CoupleCard extends StatelessWidget { child: Row( children: [ Expanded( - child: _MembreTile( - photoUrl: couple.enfant.photoUrl, - name: (couple.enfant.prenom != null && couple.enfant.prenom!.isNotEmpty) - ? couple.enfant.prenom! - : couple.enfant.displayName(fallback: 'Enfant'), - fallbackIcon: Icons.child_care, + child: Padding( + padding: const EdgeInsets.only(right: 12), + child: _MembreTile( + photoUrl: couple.enfant.photoUrl, + name: (couple.enfant.prenom != null && couple.enfant.prenom!.isNotEmpty) + ? couple.enfant.prenom! + : couple.enfant.displayName(fallback: 'Enfant'), + fallbackIcon: Icons.child_care, + ), ), ), Container( width: 8, height: 44, - margin: const EdgeInsets.symmetric(horizontal: 12), decoration: const BoxDecoration( image: DecorationImage( image: AssetImage(QuotidienTheme.pencilLineVerticalAsset), @@ -167,28 +169,32 @@ class _CoupleCard extends StatelessWidget { ), ), Expanded( - child: _MembreTile( - photoUrl: couple.am.photoUrl, - name: (couple.am.prenom != null && couple.am.prenom!.isNotEmpty) - ? couple.am.prenom! - : couple.am.displayName( - fallback: mode == CoupleBandeauMode.parent - ? 'Nounou' - : 'Parent', - ), - fallbackIcon: mode == CoupleBandeauMode.parent - ? Icons.volunteer_activism - : Icons.person_outline, - ), - ), - if (showChevron) - const Padding( - padding: EdgeInsets.only(left: 4), - child: Icon( - Icons.keyboard_arrow_down, - color: QuotidienTheme.ink, + child: Padding( + padding: const EdgeInsets.only(left: 12), + child: _MembreTile( + photoUrl: couple.am.photoUrl, + name: (couple.am.prenom != null && couple.am.prenom!.isNotEmpty) + ? couple.am.prenom! + : couple.am.displayName( + fallback: mode == CoupleBandeauMode.parent + ? 'Nounou' + : 'Parent', + ), + fallbackIcon: mode == CoupleBandeauMode.parent + ? Icons.volunteer_activism + : Icons.person_outline, ), ), + ), + SizedBox( + width: 28, + child: showChevron + ? const Icon( + Icons.keyboard_arrow_down, + color: QuotidienTheme.ink, + ) + : null, + ), ], ), );