noticias creada, embalses necesita tabla y pregones separados por dividers

This commit is contained in:
2024-05-09 17:02:25 +02:00
parent 7c2577259e
commit 66b4708d63
11 changed files with 348 additions and 71 deletions

View File

@ -1,5 +1,9 @@
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:http/http.dart' as http;
import 'package:html/parser.dart' as htmlParser;
import 'package:html/dom.dart' as htmlDom;
import 'package:flutter_project/pages/embalses';
// Define el estado
class MyState {
@ -11,8 +15,8 @@ class MyBloc extends Cubit<MyState> {
MyBloc() : super(MyState());
}
Future<void> launchAemetURL() async {
Future<void> launchAemetURL() async {
const urlString = 'https://www.aemet.es/es/eltiempo/prediccion/municipios/caspe-id50074';
final url = Uri.parse(urlString);
@ -21,4 +25,4 @@ Future<void> launchAemetURL() async {
} else {
throw 'Could not launch $urlString';
}
}
}