flexible horizontal tags

This commit is contained in:
Valentin CZERYBA 2024-10-20 20:27:17 +02:00
parent 519d20fd63
commit 8b87f55bf9

View File

@ -250,16 +250,18 @@ class _ItemMenuState extends State<ItemMenu> with ShowErrorDialog {
) )
]), ]),
Row(children: [ Row(children: [
Padding( Flexible(
flex: 3,
fit: FlexFit.tight,
child: Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.only(
top: 8, top: 8,
bottom: 8, bottom: 8,
left: 8, left: 8,
), ),
child: Wrap( child: Wrap(
runSpacing: 4.0, runSpacing: 2.0,
spacing: 4.0, spacing: 2.0,
direction: Axis.vertical,
children: organizers.map((String tag) { children: organizers.map((String tag) {
return Container( return Container(
decoration: const BoxDecoration( decoration: const BoxDecoration(
@ -285,7 +287,7 @@ class _ItemMenuState extends State<ItemMenu> with ShowErrorDialog {
), ),
); );
}).toList()), }).toList()),
), )),
]), ]),
Row(children: [ Row(children: [
Icon(Icons.description), Icon(Icons.description),
@ -306,16 +308,18 @@ class _ItemMenuState extends State<ItemMenu> with ShowErrorDialog {
]), ]),
Row( Row(
children: [ children: [
Padding( Flexible(
flex: 3,
fit: FlexFit.tight,
child: Padding(
padding: const EdgeInsets.only( padding: const EdgeInsets.only(
top: 8, top: 8,
bottom: 8, bottom: 8,
left: 8, left: 8,
), ),
child: Wrap( child: Wrap(
runSpacing: 4.0, runSpacing: 2.0,
spacing: 4.0, spacing: 2.0,
direction: Axis.vertical,
children: tags.map((String tag) { children: tags.map((String tag) {
return Container( return Container(
decoration: const BoxDecoration( decoration: const BoxDecoration(
@ -324,7 +328,8 @@ class _ItemMenuState extends State<ItemMenu> with ShowErrorDialog {
), ),
color: Colors.blue, color: Colors.blue,
), ),
margin: const EdgeInsets.symmetric(horizontal: 5.0), margin:
const EdgeInsets.symmetric(horizontal: 5.0),
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(
horizontal: 10.0, vertical: 5.0), horizontal: 10.0, vertical: 5.0),
child: Row( child: Row(
@ -334,14 +339,15 @@ class _ItemMenuState extends State<ItemMenu> with ShowErrorDialog {
InkWell( InkWell(
child: Text( child: Text(
'$tag', '$tag',
style: const TextStyle(color: Colors.white), style:
const TextStyle(color: Colors.white),
), ),
), ),
], ],
), ),
); );
}).toList()), }).toList()),
), )),
], ],
) )
], ],