【发布时间】:2021-12-30 20:42:04
【问题描述】:
我需要在我的项目 listTile 元素中添加一个阴影,但我不能用 BoxShadow 做到这一点,因为它只能在 Container 中实现
这是我的 listTile:
child: ListTile(
leading: const Icon(Icons.flight_land),
tileColor: Colors.black.withOpacity(0.5),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(15),
side: BorderSide(
color: Colors.black,
),
),
title: Text(
snapshot
.data!.docChanges[index].doc['nameCourse'],
style: TextStyle(
fontSize: 20,
//COLOR DEL TEXTO TITULO
color: Colors.blueAccent,
),
),
contentPadding: EdgeInsets.symmetric(
vertical: 8,
horizontal: 16,
),
),
【问题讨论】:
标签: flutter dart shadow elevation listtile