首页 > 解决方案 > 如何用来自material.io的flutter实现这个材质卡?

问题描述

在 material.io,他们有这个材料卡的标准结构: https ://material.io/design/components/cards.html#anatomy

材料卡

解剖学

我想知道您将如何在颤振中实现这一点和/或是否有一些抽象可以用来使卡片看起来像这样。谢谢!

标签: flutter

解决方案


card -> column [
ListTile -> title, subtitle, leading,
Row -> expanded -> image.asset,
Row -> text,
Row mainaxisalignment: spacebetween ->  Row(buttons here as a child) , Row(Icons here as a child)
]

我没有时间用颤振编写所有代码你可以通过使用它来创建它


推荐阅读