From b283165a86b784737c2253d6ad4f8cd845b23de7 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sun, 29 Sep 2024 12:52:02 +0200 Subject: [PATCH] formatting text --- covas_mobile/lib/pages/ItemMenu.dart | 36 +++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/covas_mobile/lib/pages/ItemMenu.dart b/covas_mobile/lib/pages/ItemMenu.dart index cda686b..b45ee48 100644 --- a/covas_mobile/lib/pages/ItemMenu.dart +++ b/covas_mobile/lib/pages/ItemMenu.dart @@ -217,25 +217,49 @@ class _ItemMenuState extends State with ShowErrorDialog { child: Container(height: 250, child: Image.network(imgUrl)), ), ), + Row(children: [ + Icon(Icons.event), + Text( + "Date : ", + style: TextStyle(fontSize: 15.0, fontWeight: FontWeight.bold), + ) + ]), Row( children: [ - Icon(Icons.event), - Text("Date : ${eventStartDate}", - style: TextStyle(fontSize: 15.0)) + Flexible( + child: Text("${eventStartDate}", + style: TextStyle(fontSize: 15.0))) ], ), Row(children: [ Icon(Icons.explore), + Text( + "Carte : ", + style: TextStyle(fontSize: 15.0, fontWeight: FontWeight.bold), + ) + ]), + Row(children: [ Flexible( - child: Text("Carte : ${place}", + child: Text("${place}", style: TextStyle(fontSize: 15.0), maxLines: 3, overflow: TextOverflow.ellipsis)) ]), Row(children: [ Icon(Icons.group), - Text("Organisateurs : ${organizers}", - style: TextStyle(fontSize: 15.0)) + Text( + "Organisateurs : ", + style: TextStyle(fontSize: 15.0, fontWeight: FontWeight.bold), + ) + ]), + Row(children: [ + Flexible( + child: Text( + "${organizers}", + style: TextStyle(fontSize: 15.0), + maxLines: 3, + overflow: TextOverflow.ellipsis, + )) ]), Row(children: [ Icon(Icons.description),