import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Color.fromARGB(255, 0, 67, 168)), useMaterial3: true, ), home: const MyHomePage(title: 'COMUNIDAD DE REGANTES DE CIVÁN'), ); } } class MyHomePage extends StatefulWidget { const MyHomePage({Key? key, required this.title}) : super(key: key); final String title; @override State createState() => _MyHomePageState(); } class _MyHomePageState extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text(''), centerTitle: true, backgroundColor: const Color.fromARGB(255, 33, 150, 243), leading: IconButton( onPressed: () {}, icon: const Icon(Icons.menu), color: Colors.white, ), flexibleSpace: Container( padding: const EdgeInsets.all(8.0), child: Center( child: Image.asset( 'assets/logo-civan.png', height: 200, // Cambia la altura según sea necesario width: 200, // Cambia el ancho según sea necesario ), ), ), ), body: Container( decoration: BoxDecoration( image: DecorationImage( image: AssetImage('assets/agua.jpg'), // Ruta de la imagen de fondo fit: BoxFit .cover, // Ajusta la imagen para que cubra todo el contenedor ), ), child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ InkWell( onTap: () { print('Contenedor noticias clickeado'); }, 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: Colors.blue, 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: () { print('Contenedor pregón clickeado'); }, customBorder: RoundedRectangleBorder( borderRadius: BorderRadius.circular(100)), 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: Colors.blue, borderRadius: BorderRadius.circular(7.0), ), child: const Text( 'Pregón del día', textAlign: TextAlign.center, style: TextStyle( color: Colors.white, fontSize: 32.0, fontWeight: FontWeight.bold, ), ), ), ), ), ), InkWell( onTap: () { print('Contenedor tiempo clickeado'); }, 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: const Color.fromRGBO(33, 150, 243, 1), borderRadius: BorderRadius.circular(7.0), ), child: const Text( 'Tiempo', textAlign: TextAlign.center, style: TextStyle( color: Colors.white, fontSize: 32.0, fontWeight: FontWeight.bold, ), ), ), ), ), ), ], ), ), )); } }