From 36a39433c2013fe4ada7c3106b83073b11178a20 Mon Sep 17 00:00:00 2001 From: dahoud <41957584+DahoudG@users.noreply.github.com> Date: Thu, 16 Apr 2026 19:03:15 +0000 Subject: [PATCH] fix(payment): overflow 2px sur le nom d'organisation dans la carte montant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le Column du nom d'organisation n'était pas dans un Flexible — si le nom est long, le Row débordait. Ajout Flexible + maxLines: 1 + ellipsis. --- .../pages/payment_method_page.dart | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/lib/features/onboarding/presentation/pages/payment_method_page.dart b/lib/features/onboarding/presentation/pages/payment_method_page.dart index 454571d..87b3723 100644 --- a/lib/features/onboarding/presentation/pages/payment_method_page.dart +++ b/lib/features/onboarding/presentation/pages/payment_method_page.dart @@ -133,17 +133,22 @@ class _PaymentMethodPageState extends State { ), ), if (widget.souscription.organisationNom != null) - Column( - crossAxisAlignment: CrossAxisAlignment.end, - children: [ - Text('Organisation', - style: TextStyle(color: textSecondary, fontSize: 11)), - Text( - widget.souscription.organisationNom!, - style: TextStyle( - color: textPrimary, fontSize: 12, fontWeight: FontWeight.w600), - ), - ], + Flexible( + child: Column( + crossAxisAlignment: CrossAxisAlignment.end, + children: [ + Text('Organisation', + style: TextStyle(color: textSecondary, fontSize: 11)), + Text( + widget.souscription.organisationNom!, + style: TextStyle( + color: textPrimary, fontSize: 12, fontWeight: FontWeight.w600), + maxLines: 1, + overflow: TextOverflow.ellipsis, + textAlign: TextAlign.end, + ), + ], + ), ), ], ),