Make yomi widgets wrap

This commit is contained in:
Oystein Kristoffer Tveit 2020-07-16 14:09:03 +02:00
parent a695c3f106
commit eb3caf16bd
2 changed files with 29 additions and 27 deletions

View File

@ -6,12 +6,13 @@ class Kunyomi extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
child: Container(
margin: EdgeInsets.symmetric(
horizontal: 10.0,
vertical: 5.0,
),
child: Row(
alignment: Alignment.centerLeft,
child: Wrap(
runSpacing: 10.0,
children: _kunyomi.map((onyomi) {
return Container(
margin: EdgeInsets.symmetric(horizontal: 10.0),
@ -33,7 +34,6 @@ class Kunyomi extends StatelessWidget {
);
}).toList(),
),
),
);
}

View File

@ -10,7 +10,9 @@ class Onyomi extends StatelessWidget {
horizontal: 10.0,
vertical: 5.0,
),
child: Row(
alignment: Alignment.centerLeft,
child: Wrap(
runSpacing: 10.0,
children: _onyomi.map((onyomi) {
return Container(
margin: EdgeInsets.symmetric(horizontal: 10.0),