diff --git a/lib/pages/noticias b/lib/pages/noticias index 75d4ec1..b26db67 100644 --- a/lib/pages/noticias +++ b/lib/pages/noticias @@ -38,7 +38,6 @@ class _NoticiasPageState extends State { } } - // Esperar todas las promesas para que se resuelvan await Future.wait(noticiasPorTitulo.values.expand((element) => element).toList()); setState(() {}); @@ -58,19 +57,16 @@ class _NoticiasPageState extends State { for (var element in paragraphAndLists) { if (element.localName == 'p') { - // Guardar el contenido del párrafo actual if (currentParagraphContent.isNotEmpty) { content += currentParagraphContent + '\n'; currentParagraphContent = ''; } currentParagraphContent += element.text.trim() + '\n'; } else if (element.localName == 'ul') { - // Si hay un párrafo antes de la lista, agregarlo al contenido if (currentParagraphContent.isNotEmpty) { content += currentParagraphContent + '\n'; currentParagraphContent = ''; } - // Agregar la lista al contenido var listItems = element.querySelectorAll('li'); for (var listItem in listItems) { content += '- ${listItem.text.trim()}\n'; @@ -78,7 +74,6 @@ class _NoticiasPageState extends State { } } - // Agregar el último párrafo si no hay lista después if (currentParagraphContent.isNotEmpty) { content += currentParagraphContent + '\n'; } diff --git a/lib/pages/pregon b/lib/pages/pregon index 1062f18..7ad8c5a 100644 --- a/lib/pages/pregon +++ b/lib/pages/pregon @@ -79,7 +79,7 @@ Widget build(BuildContext context) { children: [ if (hasMes) Padding( - padding: const EdgeInsets.symmetric(horizontal: 10.0), // Add padding to the divider + padding: const EdgeInsets.symmetric(horizontal: 10.0), child: Divider(color: Colors.green, thickness: 3.0), // Divider antes del párrafo ), hasText @@ -97,7 +97,7 @@ Widget build(BuildContext context) { : SizedBox.shrink(), if (hasMes) Padding( - padding: const EdgeInsets.symmetric(horizontal: 100.0), // Add padding to the divider + padding: const EdgeInsets.symmetric(horizontal: 100.0), child: Divider(color: Colors.green, thickness: 1.0), // Divider después del párrafo ), ],