📜  在 ListTile 颤振中添加图像 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:48.152000             🧑  作者: Mango

代码示例1
ListTile(
  leading: CircleAvatar(
    backgroundImage: AssetImage(
      "image.png",
    ), 
  ),
  tileColor: widget.color,
  title: widget.title,
  subtitle: Text(
    widget.subtitle,
    style: TextStyle(color: Colors.black.withOpacity(0.6)),
  ),
),