fix(ui): align right tile by reserving chevron space
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -147,18 +147,20 @@ class _CoupleCard extends StatelessWidget {
|
|||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: _MembreTile(
|
child: Padding(
|
||||||
photoUrl: couple.enfant.photoUrl,
|
padding: const EdgeInsets.only(right: 12),
|
||||||
name: (couple.enfant.prenom != null && couple.enfant.prenom!.isNotEmpty)
|
child: _MembreTile(
|
||||||
? couple.enfant.prenom!
|
photoUrl: couple.enfant.photoUrl,
|
||||||
: couple.enfant.displayName(fallback: 'Enfant'),
|
name: (couple.enfant.prenom != null && couple.enfant.prenom!.isNotEmpty)
|
||||||
fallbackIcon: Icons.child_care,
|
? couple.enfant.prenom!
|
||||||
|
: couple.enfant.displayName(fallback: 'Enfant'),
|
||||||
|
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,28 +169,32 @@ class _CoupleCard extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: _MembreTile(
|
child: Padding(
|
||||||
photoUrl: couple.am.photoUrl,
|
padding: const EdgeInsets.only(left: 12),
|
||||||
name: (couple.am.prenom != null && couple.am.prenom!.isNotEmpty)
|
child: _MembreTile(
|
||||||
? couple.am.prenom!
|
photoUrl: couple.am.photoUrl,
|
||||||
: couple.am.displayName(
|
name: (couple.am.prenom != null && couple.am.prenom!.isNotEmpty)
|
||||||
fallback: mode == CoupleBandeauMode.parent
|
? couple.am.prenom!
|
||||||
? 'Nounou'
|
: couple.am.displayName(
|
||||||
: 'Parent',
|
fallback: mode == CoupleBandeauMode.parent
|
||||||
),
|
? 'Nounou'
|
||||||
fallbackIcon: mode == CoupleBandeauMode.parent
|
: 'Parent',
|
||||||
? Icons.volunteer_activism
|
),
|
||||||
: Icons.person_outline,
|
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,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
width: 28,
|
||||||
|
child: showChevron
|
||||||
|
? const Icon(
|
||||||
|
Icons.keyboard_arrow_down,
|
||||||
|
color: QuotidienTheme.ink,
|
||||||
|
)
|
||||||
|
: null,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user