1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- 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,
-
- ),
- //aqui termina lo que merge
- ],
- ),
-
- ),
-
- );
- }
- }
|