我可以删除 leading 和 actions 之间的 space 吗?

Can I remove space between leading and actions?

我试图删除前导和操作图标按钮之间的 space 但我不能,我试图将所有内容都放在行中但它不起作用!

 appBar: AppBar(
        centerTitle: true,
        title: Text(
          'data',
          textAlign: TextAlign.center,
        ),
        actions: [
          IconButton(icon: Icon(Icons.filter_sharp), onPressed: () {}),
          Directionality(
              textDirection: TextDirection.rtl,
              child: IconButton(
                  icon: Icon(Icons.arrow_back_ios), onPressed: () {})),
        ],
                leading: IconButton(icon: Icon(Icons.search), onPressed: () {}),

        backgroundColor: Theme.of(context).primaryColor,
      ),

将它们放入 Inkwell 小部件中,child 使其与图标并列。

我通过像这样向 iconbutton 添加对齐来修复它:

appBar: AppBar(
        centerTitle: true,
        title: Text(
          'data',
          textAlign: TextAlign.center,
        ),
        actions: [
          IconButton(
              icon: Icon(Icons.filter_sharp),
              onPressed: () {},
              alignment: Alignment(5, 0.0)),
          Directionality(
              textDirection: TextDirection.rtl,
              child: IconButton(
                  icon: Icon(Icons.arrow_back_ios), onPressed: () {})),
        ],
        leading: IconButton(icon: Icon(Icons.search), onPressed: () {}),
        backgroundColor: Theme.of(context).primaryColor,
      ),