home_screen.dart 829 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import 'package:flutter/material.dart';
  2. import 'package:provider/provider.dart';
  3. import '../../widgets/widgets.dart';
  4. class HomeScreen extends StatefulWidget {
  5. const HomeScreen({super.key});
  6. @override
  7. Formulario createState() => Formulario();
  8. }
  9. class Formulario extends State<HomeScreen> {
  10. @override
  11. void initState() {
  12. super.initState();
  13. }
  14. @override
  15. Widget build(BuildContext context) {
  16. return Scaffold(
  17. backgroundColor: Colors.grey.shade200,
  18. drawer: AppDrawer(),
  19. appBar: AppBar(
  20. elevation: 0,
  21. title: const Text(
  22. 'Inicio',
  23. style: TextStyle(fontWeight: FontWeight.w500),
  24. ),
  25. ),
  26. body: const Center(
  27. child: Image(
  28. image: AssetImage('assets/OlivaLogo.png'),
  29. height: 200,
  30. ),
  31. ),
  32. );
  33. }
  34. }