Add markers

This commit is contained in:
Yoshi 2024-08-15 22:39:51 +03:00
parent 6c7da7b28d
commit 8ed047a1aa
10 changed files with 172 additions and 68 deletions

View file

@ -21,6 +21,7 @@ import 'package:scrollable_positioned_list/scrollable_positioned_list.dart';
import 'package:timezone/data/latest_all.dart' as tz;
import 'package:timezone/standalone.dart' as tz;
import 'package:timezone/timezone.dart' as tz;
import 'package:url_launcher/url_launcher.dart';
import 'package:workmanager/workmanager.dart';
class WeatherController extends GetxController {
@ -597,4 +598,11 @@ class WeatherController extends GetxController {
return !value.contains(false);
});
}
void urlLauncher(String uri) async {
final Uri url = Uri.parse(uri);
if (!await launchUrl(url, mode: LaunchMode.externalApplication)) {
throw Exception('Could not launch $url');
}
}
}