No Description

home.dart 925B

123456789101112131415161718192021222324252627282930313233343536373839
  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. backgroundColor: Colors.blue[50],
  12. appBar: AppBar(
  13. backgroundColor: Colors.red[300],
  14. title: Text('Bienvenido'),
  15. centerTitle: true,
  16. ),
  17. body: Center(
  18. child: ListView(
  19. //mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  20. children: [
  21. newButton(context,'/verOficinas','Ver Oficinas'),
  22. spaceBetween(),
  23. newButton(context,'/especialidades','Buscar \nespecialidades'),
  24. spaceBetween(),
  25. newButton(context,'/translation','Translation Demo'),
  26. spaceBetween(),
  27. ],
  28. ),
  29. ),
  30. );
  31. }
  32. }