No Description

home.dart 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import 'package:flutter/material.dart';
  2. import '../widgets/functions.dart';
  3. class Home extends StatefulWidget{
  4. @override
  5. _HomeState createState() => _HomeState();
  6. }
  7. class _HomeState extends State<Home>{
  8. @override
  9. Widget build(BuildContext context){
  10. return Scaffold(
  11. appBar: AppBar(
  12. title: Text('Bienvenido'),
  13. centerTitle: true,
  14. ),
  15. body: Center(
  16. child: ListView(
  17. //mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  18. children: [
  19. newButton(context,'/verOficinas','Ver Oficinas'),
  20. spaceBetween(),
  21. // newButton(context,'/calendario','Calendario'),
  22. // spaceBetween(),
  23. // newButton(context,'/register','Register'),
  24. // spaceBetween(),
  25. // newButton(context,'/welcome','Welcome'),
  26. // spaceBetween(),
  27. // newButton(context,'/MyApp','MyApp'),
  28. // spaceBetween(),
  29. // newButton(context,'/album','Ver Oficinas 2: electr'),
  30. // spaceBetween(),
  31. ],
  32. ),
  33. ),
  34. );
  35. }
  36. }