Fix the padding and space for FlatButton and RaisedButton (#3650)
Instead of incorporating the margin into the button, introduce a ButtonBar widget that supplies the proper spacing between the buttons. Also, make these buttons more configurable via ButtonTheme so that dialogs can change the minWidth and padding of the buttons as required by the spec. Fixes #1843 Fixes #3184
This commit is contained in:
@@ -190,8 +190,8 @@ class Launcher extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return new Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
return new ButtonBar(
|
||||
alignment: MainAxisAlignment.center,
|
||||
children: items
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user