123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- import 'package:flutter/material.dart';
- import '../widgets/functions.dart';
-
- class Home extends StatefulWidget{
- @override
- _HomeState createState() => _HomeState();
- }
-
-
-
-
- class _HomeState extends State<Home>{
- @override
- Widget build(BuildContext context){
- return Scaffold(
- appBar: AppBar(
- title: Text('Bienvenido'),
- centerTitle: true,
- ),
- body: Center(
- child: ListView(
- //mainAxisAlignment: MainAxisAlignment.spaceEvenly,
- children: [
-
- //estos dos estaban sin comentar originalmente
- //newButton(context,'/verOficinas','Ver Oficinas'),
- //spaceBetween(),
-
- //aqui comienza lo que merge
- new FlatButton(
- minWidth: 300.0,
- height: 100.0,
- onPressed: (){
- Navigator.pushNamed(context, '/verOficinas');
- },
- child: Text('Ver Oficinas',
- style: TextStyle(fontSize: 36),
- ),
- color: Colors.purple,
-
- ),
- new FlatButton(
- minWidth: 300.0,
- height: 100.0,
- onPressed: (){
- Navigator.pushNamed(context, '/calendario');
- },
- child: Text('Buscar Citas',
- style: TextStyle(fontSize: 36),
- ),
- color: Colors.purple,
-
- ),
- new FlatButton(
- minWidth: 300.0,
- height: 100.0,
- onPressed: (){
- Navigator.pushNamed(context, '/register');
- },
- child: Text('register',
- style: TextStyle(fontSize: 36),
- ),
- color: Colors.purple,
-
- ),
- new FlatButton(
- minWidth: 300.0,
- height: 100.0,
- onPressed: (){
- Navigator.pushNamed(context, '/welcome');
- },
- child: Text('welcome',
- style: TextStyle(fontSize: 36),
- ),
- color: Colors.purple,
-
- ),
- new FlatButton(
- minWidth: 300.0,
- height: 100.0,
- onPressed: (){
- Navigator.pushNamed(context, '/MyApp');
- },
- child: Text('MyApp',
- style: TextStyle(fontSize: 36),
- ),
- color: Colors.purple,
-
- ),
- new FlatButton(
- minWidth: 300.0,
- height: 100.0,
- onPressed: (){
- Navigator.pushNamed(context, '/especialidades');
- },
- child: Text('especialidades',
- style: TextStyle(fontSize: 36),
- ),
- color: Colors.purple,
-
- ),
- //aqui termina lo que merge
- ],
- ),
-
- ),
-
- );
- }
- }
|