import 'package:flutter/material.dart'; import '../widgets/functions.dart'; class Home extends StatefulWidget{ @override _HomeState createState() => _HomeState(); } class _HomeState extends State{ @override Widget build(BuildContext context){ return Scaffold( backgroundColor: Colors.blue[50], appBar: AppBar( backgroundColor: Colors.red[300], title: Text('Bienvenido'), centerTitle: true, ), body: Center( child: ListView( //mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ newButton(context,'/verOficinas','Ver Oficinas'), spaceBetween(), newButton(context,'/especialidades','Buscar \nespecialidades'), spaceBetween(), newButton(context,'/translation','Translation Demo'), spaceBetween(), ], ), ), ); } }