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