【发布时间】:2020-05-17 01:13:30
【问题描述】:
如何减少按钮之间的间距?
您可以看到应用栏上的四个按钮占用了太多空间,我尝试了 Rows。但没用
AppBar(
backgroundColor: Colors.deepOrange,
iconTheme: new IconThemeData(color: Colors.white),
title: Text(
titleString,
style: TextStyle(color: Colors.white),
),
actions: <Widget>[
IconButton(
icon: Icon(
Icons.search,
color: Colors.white,
),
//iconSize: 20,
onPressed: null,
),
IconButton(
icon: Icon(
Icons.notifications_none,
color: Colors.white,
),
// iconSize: 20,
onPressed: null,
),
//Add more icon here
],
);
【问题讨论】:
-
您能描述一下您是如何尝试使用 Row 做到这一点的吗?
-
在行中添加所有图标并将轴大小设置为最小.. 但不起作用