Flutter EdgeInsets.only不适用于按钮栏按钮添加?
例如,在下面的代码中,Flutter EdgeInsets.only不适用于按钮栏按钮添加?,flutter,Flutter,例如,在下面的代码中,边设置。只有对填充没有任何影响 ButtonBar( alignment: MainAxisAlignment.spaceEvenly, buttonPadding: EdgeInsets.only(top: 50), 反而 buttonPadding: EdgeInsets.all(20), // has influence on the padding 为什么它不适用于第一种情况?按钮栏可能处于受约束的布局中。
边设置。只有
对填充没有任何影响
ButtonBar(
alignment: MainAxisAlignment.spaceEvenly,
buttonPadding: EdgeInsets.only(top: 50),
反而
buttonPadding: EdgeInsets.all(20), // has influence on the padding
为什么它不适用于第一种情况?按钮栏可能处于受约束的布局中。