mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2024-12-14 02:41:50 +01:00
40 lines
953 B
Dart
40 lines
953 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class Onyomi extends StatelessWidget {
|
|
final List<String> _onyomi;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
margin: EdgeInsets.symmetric(
|
|
horizontal: 10.0,
|
|
vertical: 5.0,
|
|
),
|
|
child: Row(
|
|
children: _onyomi.map((onyomi) {
|
|
return Container(
|
|
margin: EdgeInsets.symmetric(horizontal: 10.0),
|
|
padding: EdgeInsets.symmetric(
|
|
vertical: 10.0,
|
|
horizontal: 10.0,
|
|
),
|
|
child: Text(
|
|
onyomi,
|
|
style: TextStyle(
|
|
fontSize: 20.0,
|
|
color: Colors.white,
|
|
),
|
|
),
|
|
decoration: BoxDecoration(
|
|
color: Colors.orange,
|
|
borderRadius: BorderRadius.circular(10.0),
|
|
),
|
|
);
|
|
}).toList(),
|
|
),
|
|
);
|
|
}
|
|
|
|
Onyomi(this._onyomi);
|
|
}
|