No Description

home.dart 880B

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