如何在Flutter 中左对齐OutlineButton
图标?
Icon
可以按如下方式添加,但图标和文本在按钮中居中对齐.有没有办法使图标左对齐,文本居中对齐?
return new OutlineButton.icon(
onPressed: onPressed,
label: new Text(title),
icon: icon,
highlightedBorderColor: Colors.orange,
color: Colors.green,
borderSide: new BorderSide(color: Colors.green),
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(5.0)));