Cambio interfaz home (prueba), error en enlace Tiempo y noticias faltan mejoras

This commit is contained in:
2024-05-16 12:28:25 +02:00
parent eec626ac3a
commit 0c1ef39a32
7 changed files with 102 additions and 58 deletions

View File

@ -77,23 +77,32 @@ Widget build(BuildContext context) {
final hasMes = meses.any((mes) => datos[index].toLowerCase().contains(mes));
return Column(
children: [
if (hasMes) Divider(color: Colors.blue, thickness: 3.0), // Divider antes del párrafo
if (hasMes)
Padding(
padding: const EdgeInsets.symmetric(horizontal: 10.0), // Add padding to the divider
child: Divider(color: Colors.blue, thickness: 3.0), // Divider antes del párrafo
),
hasText
? ListTile(
title: Center(
child: Text(
datos[index],
textAlign: TextAlign.center,
style: TextStyle(
color: hasMes ? Color.fromARGB(255, 0, 0, 0) : Color.fromARGB(255, 0, 0, 0),
color: hasMes ? Color.fromARGB(255, 0, 0, 0) : Color.fromARGB(255, 0, 0, 0), fontWeight : FontWeight.bold
),
),
),
)
: SizedBox.shrink(),
if (hasMes) Divider(color: Colors.blue, thickness: 1.0), // Divider después del párrafo
],
);
},
if (hasMes)
Padding(
padding: const EdgeInsets.symmetric(horizontal: 100.0), // Add padding to the divider
child: Divider(color: Colors.blue, thickness: 1.0), // Divider después del párrafo
),
],
);
},
shrinkWrap: true, // Ajusta el tamaño de ListView al contenido
),
),