noticias creada, embalses necesita tabla y pregones separados por dividers
This commit is contained in:
@ -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';
|
||||
}
|
||||
}
|
||||
}
|
||||
0
lib/BloC/estados
Normal file
0
lib/BloC/estados
Normal file
Reference in New Issue
Block a user