【发布时间】:2021-10-08 09:38:24
【问题描述】:
【问题讨论】:
-
您应该将此答案添加为您的帖子的评论或将其添加到您的帖子中
标签: flutter web flutter-layout flutter-web
【问题讨论】:
标签: flutter web flutter-layout flutter-web
试试下面的代码希望对你有帮助:
Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(15.0))),
elevation: 2,
margin: EdgeInsets.all(12.0),
child: Padding(
padding: const EdgeInsets.all(8.0),
child: ExpansionTile(
backgroundColor: Colors.white,
title: Text('ok'),
trailing: SizedBox(),
children: <Widget>[
Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: <Widget>[
Icon(Icons.person),
SizedBox(
width: 10,
),
Text("ABC"),
],
),
),
Divider(),
Padding(
padding: const EdgeInsets.all(8.0),
child: Row(
children: <Widget>[
Icon(Icons.check),
SizedBox(width: 10,),
Text("Bike"),
],
),
)
],
),
),
),
【讨论】: