import 'package:flutter/material.dart'; FlatButton newButton(context,route,text){ return new FlatButton( //minWidth: 300.0, //height: 100.0, onPressed: (){ Navigator.pushNamed(context, route); }, child: Text(text, style: TextStyle(fontSize: 36), ), color: Colors.purple, //shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(50)), padding: EdgeInsets.all(25), ); } FlatButton verOficinaButton(context,name){ return new FlatButton( minWidth: 300.0, height: 100.0, child: Text(name, style: TextStyle(fontSize: 36), ), onPressed: () { print(name); }, padding: new EdgeInsets.all(0.0), color: Colors.purple, ); } SizedBox spaceBetween(){ return new SizedBox(height: 16); } List newButton2(context,route,text){ return [new FlatButton( //minWidth: 300.0, //height: 100.0, onPressed: (){ Navigator.pushNamed(context, route); }, child: Text(text, style: TextStyle(fontSize: 36), ), color: Colors.purple, //shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(50)), padding: EdgeInsets.all(25), ) , new SizedBox(height: 16) ]; }