diff --git a/covas_mobile/lib/pages/ItemMenu.dart b/covas_mobile/lib/pages/ItemMenu.dart index 788d204..3d923e9 100644 --- a/covas_mobile/lib/pages/ItemMenu.dart +++ b/covas_mobile/lib/pages/ItemMenu.dart @@ -250,42 +250,44 @@ class _ItemMenuState extends State with ShowErrorDialog { ) ]), Row(children: [ - Padding( - padding: const EdgeInsets.only( - top: 8, - bottom: 8, - left: 8, - ), - child: Wrap( - runSpacing: 4.0, - spacing: 4.0, - direction: Axis.vertical, - children: organizers.map((String tag) { - return Container( - decoration: const BoxDecoration( - borderRadius: BorderRadius.all( - Radius.circular(20.0), - ), - color: Colors.blue, - ), - margin: const EdgeInsets.symmetric(horizontal: 5.0), - padding: const EdgeInsets.symmetric( - horizontal: 10.0, vertical: 5.0), - child: Row( - mainAxisAlignment: MainAxisAlignment.start, - mainAxisSize: MainAxisSize.min, - children: [ - InkWell( - child: Text( - '$tag', - style: const TextStyle(color: Colors.white), + Flexible( + flex: 3, + fit: FlexFit.tight, + child: Padding( + padding: const EdgeInsets.only( + top: 8, + bottom: 8, + left: 8, + ), + child: Wrap( + runSpacing: 2.0, + spacing: 2.0, + children: organizers.map((String tag) { + return Container( + decoration: const BoxDecoration( + borderRadius: BorderRadius.all( + Radius.circular(20.0), ), + color: Colors.blue, ), - ], - ), - ); - }).toList()), - ), + margin: const EdgeInsets.symmetric(horizontal: 5.0), + padding: const EdgeInsets.symmetric( + horizontal: 10.0, vertical: 5.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + InkWell( + child: Text( + '$tag', + style: const TextStyle(color: Colors.white), + ), + ), + ], + ), + ); + }).toList()), + )), ]), Row(children: [ Icon(Icons.description), @@ -306,42 +308,46 @@ class _ItemMenuState extends State with ShowErrorDialog { ]), Row( children: [ - Padding( - padding: const EdgeInsets.only( - top: 8, - bottom: 8, - left: 8, - ), - child: Wrap( - runSpacing: 4.0, - spacing: 4.0, - direction: Axis.vertical, - children: tags.map((String tag) { - return Container( - decoration: const BoxDecoration( - borderRadius: BorderRadius.all( - Radius.circular(20.0), - ), - color: Colors.blue, - ), - margin: const EdgeInsets.symmetric(horizontal: 5.0), - padding: const EdgeInsets.symmetric( - horizontal: 10.0, vertical: 5.0), - child: Row( - mainAxisAlignment: MainAxisAlignment.start, - mainAxisSize: MainAxisSize.min, - children: [ - InkWell( - child: Text( - '$tag', - style: const TextStyle(color: Colors.white), + Flexible( + flex: 3, + fit: FlexFit.tight, + child: Padding( + padding: const EdgeInsets.only( + top: 8, + bottom: 8, + left: 8, + ), + child: Wrap( + runSpacing: 2.0, + spacing: 2.0, + children: tags.map((String tag) { + return Container( + decoration: const BoxDecoration( + borderRadius: BorderRadius.all( + Radius.circular(20.0), ), + color: Colors.blue, ), - ], - ), - ); - }).toList()), - ), + margin: + const EdgeInsets.symmetric(horizontal: 5.0), + padding: const EdgeInsets.symmetric( + horizontal: 10.0, vertical: 5.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + InkWell( + child: Text( + '$tag', + style: + const TextStyle(color: Colors.white), + ), + ), + ], + ), + ); + }).toList()), + )), ], ) ],