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:
Adam Barth
2016-04-29 16:13:25 -07:00
parent f8d76d1851
commit b2fa6c250a
18 changed files with 331 additions and 173 deletions

View File

@@ -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
);
}