import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; class MyHomePage extends StatelessWidget { const MyHomePage({Key? key, required this.title}) : super(key: key); final String title; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text(''), centerTitle: true, backgroundColor: Color.fromARGB(255, 194, 218, 230), flexibleSpace: Container( padding: const EdgeInsets.all(8.0), child: Center( child: Padding( padding: const EdgeInsets.only(top: 30.0), // Margen superior child: Image.asset( 'assets/logo-civan.png', height: 150, width: 150, ), ), ), ), ), body: Container( decoration: const BoxDecoration( image: DecorationImage( image: AssetImage('assets/logo-fondo.png'), fit: BoxFit.cover, ), ), child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ InkWell( onTap: () { }, child: SizedBox( width: 300.0, child: Padding( padding: const EdgeInsets.only(bottom: 20.0), child: Container( padding: const EdgeInsets.all(8.0), decoration: BoxDecoration( color: Color.fromARGB(255, 43, 102, 150), borderRadius: BorderRadius.circular(7.0), ), child: const Text( 'Noticias', textAlign: TextAlign.center, style: TextStyle( color: Colors.white, fontSize: 32.0, fontWeight: FontWeight.bold, ), ), ), ), ), ), InkWell( onTap: () { }, child: SizedBox( width: 300.0, child: Padding( padding: const EdgeInsets.only(bottom: 20.0), child: Container( padding: const EdgeInsets.all(8.0), decoration: BoxDecoration( color: Color.fromARGB(255, 43, 102, 150), borderRadius: BorderRadius.circular(7.0), ), child: const Text( 'Pregón', textAlign: TextAlign.center, style: TextStyle( color: Colors.white, fontSize: 32.0, fontWeight: FontWeight.bold, ), ), ), ), ), ), InkWell( onTap: () { }, child: SizedBox( width: 300.0, child: Padding( padding: const EdgeInsets.only(bottom: 20.0), child: Container( padding: const EdgeInsets.all(8.0), decoration: BoxDecoration( color: Color.fromARGB(255, 43, 102, 150), borderRadius: BorderRadius.circular(7.0), ), child: const Text( 'Embalses', textAlign: TextAlign.center, style: TextStyle( color: Colors.white, fontSize: 32.0, fontWeight: FontWeight.bold, ), ), ), ), ), ), InkWell( onTap: () { }, child: SizedBox( width: 300.0, child: Padding( padding: const EdgeInsets.only(bottom: 20.0), child: Container( padding: const EdgeInsets.all(8.0), decoration: BoxDecoration( color: Color.fromARGB(255, 43, 102, 150), borderRadius: BorderRadius.circular(7.0), ), child: const Text( 'Tiempo', textAlign: TextAlign.center, style: TextStyle( color: Colors.white, fontSize: 32.0, fontWeight: FontWeight.bold, ), ), ), ), ), ), ], ), ), ), ); } }