From 47dfcc3632ba205309b638a12d789ba8babc8eb3 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sun, 29 Sep 2024 11:02:27 +0200 Subject: [PATCH] add flexible --- covas_mobile/lib/pages/ItemMenu.dart | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/covas_mobile/lib/pages/ItemMenu.dart b/covas_mobile/lib/pages/ItemMenu.dart index 1d6e920..5854910 100644 --- a/covas_mobile/lib/pages/ItemMenu.dart +++ b/covas_mobile/lib/pages/ItemMenu.dart @@ -226,7 +226,11 @@ class _ItemMenuState extends State with ShowErrorDialog { ), Row(children: [ Icon(Icons.explore), - Text("Carte : ${place}", style: TextStyle(fontSize: 15.0)) + Flexible( + child: Text("Carte : ${place}", + style: TextStyle(fontSize: 15.0), + maxLines: 3, + overflow: TextOverflow.ellipsis)) ]), Row(children: [ Icon(Icons.group), @@ -235,8 +239,11 @@ class _ItemMenuState extends State with ShowErrorDialog { ]), Row(children: [ Icon(Icons.description), - Text("Description : ${eventDescription}", - style: TextStyle(fontSize: 15.0)) + Flexible( + child: Text("Description : ${eventDescription}", + style: TextStyle(fontSize: 15.0), + maxLines: 3, + overflow: TextOverflow.ellipsis)) ]) ], )));