fix(ui): align right tile by reserving chevron space

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-24 00:45:01 +02:00
co-authored by Cursor
parent bf00933f65
commit 9a4664a8ea
@@ -147,6 +147,8 @@ class _CoupleCard extends StatelessWidget {
child: Row( child: Row(
children: [ children: [
Expanded( Expanded(
child: Padding(
padding: const EdgeInsets.only(right: 12),
child: _MembreTile( child: _MembreTile(
photoUrl: couple.enfant.photoUrl, photoUrl: couple.enfant.photoUrl,
name: (couple.enfant.prenom != null && couple.enfant.prenom!.isNotEmpty) name: (couple.enfant.prenom != null && couple.enfant.prenom!.isNotEmpty)
@@ -155,10 +157,10 @@ class _CoupleCard extends StatelessWidget {
fallbackIcon: Icons.child_care, fallbackIcon: Icons.child_care,
), ),
), ),
),
Container( Container(
width: 8, width: 8,
height: 44, height: 44,
margin: const EdgeInsets.symmetric(horizontal: 12),
decoration: const BoxDecoration( decoration: const BoxDecoration(
image: DecorationImage( image: DecorationImage(
image: AssetImage(QuotidienTheme.pencilLineVerticalAsset), image: AssetImage(QuotidienTheme.pencilLineVerticalAsset),
@@ -167,6 +169,8 @@ class _CoupleCard extends StatelessWidget {
), ),
), ),
Expanded( Expanded(
child: Padding(
padding: const EdgeInsets.only(left: 12),
child: _MembreTile( child: _MembreTile(
photoUrl: couple.am.photoUrl, photoUrl: couple.am.photoUrl,
name: (couple.am.prenom != null && couple.am.prenom!.isNotEmpty) name: (couple.am.prenom != null && couple.am.prenom!.isNotEmpty)
@@ -181,13 +185,15 @@ class _CoupleCard extends StatelessWidget {
: Icons.person_outline, : Icons.person_outline,
), ),
), ),
if (showChevron) ),
const Padding( SizedBox(
padding: EdgeInsets.only(left: 4), width: 28,
child: Icon( child: showChevron
? const Icon(
Icons.keyboard_arrow_down, Icons.keyboard_arrow_down,
color: QuotidienTheme.ink, color: QuotidienTheme.ink,
), )
: null,
), ),
], ],
), ),