[Flutter]表示するリストを線で分ける
線を引きたい部分はDividerを使う
var resultList = List<Widget>();
list.forEach((val) {
resultList.add(
Column(children: [
Row(
children: [
Expanded(
child: FlatButton(
child: Text(val.name),
onPressed: () async {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => HomePage()));
},
),
),
],
),
Divider(
color: Colors.grey,
),
]),
);
});