[英]How can i make advanced UI design in flutter
You can try this:你可以试试这个:
Container(
width: double.infinity,
height: 100,
child: Row(
children: <Widget>[
Expanded(
flex: 1,
child: Card(
elevation: 15,
child: Stack(
children: <Widget>[
Positioned(
top: 10,
left: 10,
child: Icon(Icons.cancel),
),
Positioned(
top: 10,
right: 10,
child: Icon(Icons.print),
),
],
),
),
),
Expanded(
flex: 1,
child: Card(
elevation: 15,
child: Stack(
children: <Widget>[
Positioned(
top: 10,
left: 10,
child: Icon(Icons.cancel),
),
Positioned(
top: 10,
right: 10,
child: Icon(Icons.print),
),
],
),
),
),
],
),
),
Put it into body and you can customize the Icon with other widget like Switcher,...将其放入正文中,您可以使用 Switcher 等其他小部件自定义图标,...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.