From 07d3160bffb1b69426a8e8e73512092ab3546ad7 Mon Sep 17 00:00:00 2001 From: Julien Martin Date: Fri, 25 Sep 2026 17:14:56 +0200 Subject: [PATCH] =?UTF-8?q?fix(#173):=20ic=C3=B4ne=20en=20colonne=20=C3=A0?= =?UTF-8?q?=20droite,=20texte=20(titre+dates)=20regroup=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Les 3 lignes restent ensemble à gauche face à l’icône. Co-authored-by: Cursor --- .../lib/widgets/quotidien/cartes_feed.dart | 105 +++++++++--------- 1 file changed, 55 insertions(+), 50 deletions(-) diff --git a/frontend/lib/widgets/quotidien/cartes_feed.dart b/frontend/lib/widgets/quotidien/cartes_feed.dart index dd38e48..7d8b919 100644 --- a/frontend/lib/widgets/quotidien/cartes_feed.dart +++ b/frontend/lib/widgets/quotidien/cartes_feed.dart @@ -384,22 +384,66 @@ class _BulleTile extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.stretch, children: [ Row( - crossAxisAlignment: CrossAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.center, children: [ Expanded( - child: Text( - card.titreAffiche, - maxLines: 2, - overflow: TextOverflow.ellipsis, - style: GoogleFonts.merienda( - fontSize: 18, - fontWeight: FontWeight.w700, - color: QuotidienTheme.ink, - ), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + card.titreAffiche, + maxLines: 2, + overflow: TextOverflow.ellipsis, + style: GoogleFonts.merienda( + fontSize: 18, + fontWeight: FontWeight.w700, + color: QuotidienTheme.ink, + ), + ), + if (card.dateDebut != null || card.dateFin != null) ...[ + const SizedBox(height: 10), + Padding( + padding: const EdgeInsets.only(left: 12), + child: memeJour + ? Text( + 'Le ${_fmtLong(card.dateDebut)}', + style: GoogleFonts.merienda( + fontSize: 17, + fontWeight: FontWeight.w600, + color: QuotidienTheme.ink, + height: 1.35, + ), + ) + : Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Du ${_fmtLong(card.dateDebut)}', + style: GoogleFonts.merienda( + fontSize: 17, + fontWeight: FontWeight.w600, + color: QuotidienTheme.ink, + height: 1.35, + ), + ), + Text( + 'Au ${_fmtLong(card.dateFin)}', + style: GoogleFonts.merienda( + fontSize: 17, + fontWeight: FontWeight.w600, + color: QuotidienTheme.ink, + height: 1.35, + ), + ), + ], + ), + ), + ], + ], ), ), if (card.iconAsset != null) ...[ - const SizedBox(width: 8), + const SizedBox(width: 10), Image.asset( card.iconAsset!, width: 80, @@ -410,45 +454,6 @@ class _BulleTile extends StatelessWidget { ], ], ), - if (card.dateDebut != null || card.dateFin != null) ...[ - const SizedBox(height: 10), - Padding( - padding: const EdgeInsets.only(left: 12), - child: memeJour - ? Text( - 'Le ${_fmtLong(card.dateDebut)}', - style: GoogleFonts.merienda( - fontSize: 17, - fontWeight: FontWeight.w600, - color: QuotidienTheme.ink, - height: 1.35, - ), - ) - : Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - 'Du ${_fmtLong(card.dateDebut)}', - style: GoogleFonts.merienda( - fontSize: 17, - fontWeight: FontWeight.w600, - color: QuotidienTheme.ink, - height: 1.35, - ), - ), - Text( - 'Au ${_fmtLong(card.dateFin)}', - style: GoogleFonts.merienda( - fontSize: 17, - fontWeight: FontWeight.w600, - color: QuotidienTheme.ink, - height: 1.35, - ), - ), - ], - ), - ), - ], if (card.statut == CarteStatut.refusee) ...[ const SizedBox(height: 6), Text(