Agrega flyers en guia de separacion

This commit is contained in:
Erick Cesar Mondragon Palacios
2026-05-22 20:07:55 -06:00
parent 9e9d423b74
commit 01683c8952
6 changed files with 71 additions and 25 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

BIN
assets/images/Organico.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

View File

@@ -1640,6 +1640,7 @@ class GuiaPage extends StatelessWidget {
String detalle, String detalle,
IconData icono, IconData icono,
Color color, Color color,
String imagen,
) { ) {
return Card( return Card(
child: ListTile( child: ListTile(
@@ -1648,7 +1649,10 @@ class GuiaPage extends StatelessWidget {
backgroundColor: color.withOpacity(0.12), backgroundColor: color.withOpacity(0.12),
child: Icon(icono, color: color), child: Icon(icono, color: color),
), ),
title: Text(titulo, style: const TextStyle(fontSize: 20, fontWeight: FontWeight.w900)), title: Text(
titulo,
style: const TextStyle(fontSize: 20, fontWeight: FontWeight.w900),
),
subtitle: Text(ejemplo), subtitle: Text(ejemplo),
trailing: const Icon(Icons.arrow_forward_ios, size: 18), trailing: const Icon(Icons.arrow_forward_ios, size: 18),
onTap: () { onTap: () {
@@ -1660,6 +1664,7 @@ class GuiaPage extends StatelessWidget {
detalle: detalle, detalle: detalle,
icono: icono, icono: icono,
color: color, color: color,
imagen: imagen,
), ),
), ),
); );
@@ -1688,6 +1693,7 @@ class GuiaPage extends StatelessWidget {
'Son residuos naturales. Separarlos ayuda a hacer composta y evita malos olores.', 'Son residuos naturales. Separarlos ayuda a hacer composta y evita malos olores.',
Icons.eco, Icons.eco,
AppColors.green, AppColors.green,
'assets/images/Organico.jpeg',
), ),
basuraCard( basuraCard(
context, context,
@@ -1696,6 +1702,7 @@ class GuiaPage extends StatelessWidget {
'Pueden volver a usarse. Separarlos reduce basura y ayuda al medio ambiente.', 'Pueden volver a usarse. Separarlos reduce basura y ayuda al medio ambiente.',
Icons.recycling, Icons.recycling,
Colors.blue, Colors.blue,
'assets/images/Reciclables.jpeg',
), ),
basuraCard( basuraCard(
context, context,
@@ -1704,6 +1711,7 @@ class GuiaPage extends StatelessWidget {
'Deben ir separados porque pueden tener bacterias y no se reciclan.', 'Deben ir separados porque pueden tener bacterias y no se reciclan.',
Icons.delete, Icons.delete,
Colors.purple, Colors.purple,
'assets/images/Sanitarios.jpeg',
), ),
basuraCard( basuraCard(
context, context,
@@ -1712,6 +1720,7 @@ class GuiaPage extends StatelessWidget {
'No deben mezclarse porque contaminan mucho y necesitan manejo especial.', 'No deben mezclarse porque contaminan mucho y necesitan manejo especial.',
Icons.warning, Icons.warning,
AppColors.orange, AppColors.orange,
'assets/images/Especiales.jpeg',
), ),
], ],
), ),
@@ -1724,6 +1733,7 @@ class DetalleGuiaPage extends StatelessWidget {
final String detalle; final String detalle;
final IconData icono; final IconData icono;
final Color color; final Color color;
final String imagen;
const DetalleGuiaPage({ const DetalleGuiaPage({
super.key, super.key,
@@ -1731,15 +1741,17 @@ class DetalleGuiaPage extends StatelessWidget {
required this.detalle, required this.detalle,
required this.icono, required this.icono,
required this.color, required this.color,
required this.imagen,
}); });
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar(title: Text(titulo)), appBar: AppBar(title: Text(titulo)),
body: Padding( body: ListView(
padding: const EdgeInsets.all(24), padding: const EdgeInsets.all(24),
child: AppCard( children: [
AppCard(
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
@@ -1762,6 +1774,39 @@ class DetalleGuiaPage extends StatelessWidget {
], ],
), ),
), ),
const SizedBox(height: 16),
AppCard(
child: Column(
children: [
const Text(
'Apoyo visual',
style: TextStyle(fontSize: 24, fontWeight: FontWeight.w900),
),
const SizedBox(height: 12),
ClipRRect(
borderRadius: BorderRadius.circular(16),
child: Image.asset(
imagen,
width: double.infinity,
fit: BoxFit.contain,
errorBuilder: (context, error, stackTrace) {
return Container(
height: 220,
alignment: Alignment.center,
color: Colors.grey.shade200,
child: const Text(
'No se encontró la imagen.\nRevisa assets/images/',
textAlign: TextAlign.center,
style: TextStyle(fontSize: 18),
),
);
},
),
),
],
),
),
],
), ),
); );
} }

View File

@@ -57,7 +57,8 @@ flutter:
# included with your application, so that you can use the icons in # included with your application, so that you can use the icons in
# the material Icons class. # the material Icons class.
uses-material-design: true uses-material-design: true
assets:
- assets/images/
# To add assets to your application, add an assets section, like this: # To add assets to your application, add an assets section, like this:
# assets: # assets:
# - images/a_dot_burr.jpeg # - images/a_dot_burr.jpeg