【发布时间】:2021-07-20 01:24:29
【问题描述】:
我想在 listtile flutter 中的前导图标之间绘制垂直线。我尝试过 VerticalDivider,但我不想要线之间的空间。我想做像下面显示的图像。有人知道怎么做吗?
这是我的代码:
Widget build(BuildContext context) {
return ListView(
children: <Widget>[
ListTile(
dense: true,
title: Text('Name'),
leading: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
Icons.person,
color: Colors.black,
),
ListTile(
dense: true,
title: Text('Name'),
leading: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
Icons.person,
color: Colors.black,
),
ListTile(
dense: true,
title: Text('Name'),
leading: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
Icons.person,
color: Colors.black,
),
],
),
),
],
)
【问题讨论】:
标签: flutter