Make yomi widgets wrap
This commit is contained in:
parent
a695c3f106
commit
eb3caf16bd
|
@ -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(),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue