123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- 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.red[300],
- //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.red[300],
-
- );
- }
-
- 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.red[300],
- //shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(50)),
- padding: EdgeInsets.all(25),
- )
- ,
- new SizedBox(height: 16)
- ];
- }
|