Card

class LayoutView extends StatelessWidget {
const LayoutView({super.key});
@override
Widget build(BuildContext context) {
// TODO: implement build
return ListView(
children: [
Card(
margin: EdgeInsets.all(10),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20), //卡牌圆角
),
child: Column(
children: [
AspectRatio(
aspectRatio: 16 / 9,
child: Image.network(
"https://gips0.baidu.com/it/u=1690853528,2506870245&fm=3028&app=3028&f=JPEG&fmt=auto?w=1024&h=1024",
fit: BoxFit.cover,
),
),
ListTile(
leading: ClipOval(
child: Image.network(
"https://gips1.baidu.com/it/u=1183704777,1871554157&fm=3074&app=3074&f=PNG?w=2048&h=2048",
width: 40,
height: 40,
fit: BoxFit.cover,
),
),
title: Text("data"),
subtitle: Text("sub"),
contentPadding: EdgeInsets.fromLTRB(10, 0, 0, 0),
),
],
),
),
],
);
}
}

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容