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( appBar: AppBar( title: Text('Bienvenido'), centerTitle: true, ), body: Center( child: ListView( //mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ newButton(context,'/verOficinas','Ver Oficinas'), spaceBetween(), newButton(context,'/especialidades','especialidades'), spaceBetween(), newButton(context,'/translation','translation'), spaceBetween(), ], ), ), ); } }