public Widget buildFlatButton() { return(new Align( alignment: new Alignment(0.0f, -0.2f), child: new Column( mainAxisSize: MainAxisSize.min, children: new List <Widget> { new ButtonBar( mainAxisSize: MainAxisSize.min, children: new List <Widget> { new FlatButton( child: new Text("FLAT BUTTON"), onPressed: () => { // Perform some action } ), new FlatButton( child: new Text("DISABLED"), onPressed: null ) } ), new ButtonBar( mainAxisSize: MainAxisSize.min, children: new List <Widget> { FlatButton.icon( icon: new Icon(Icons.add_circle_outline, size: 18.0f), label: new Text("FLAT BUTTON"), onPressed: () => { // Perform some action } ), FlatButton.icon( icon: new Icon(Icons.add_circle_outline, size: 18.0f), label: new Text("DISABLED"), onPressed: null ), } ) } ) )); }