説明なし

home.dart 829B

12345678910111213141516171819202122232425262728293031323334353637
  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,'/especialidades','especialidades'),
  22. spaceBetween(),
  23. newButton(context,'/translation','translation'),
  24. spaceBetween(),
  25. ],
  26. ),
  27. ),
  28. );
  29. }
  30. }