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(