This commit is contained in:
Yoshi 2023-07-17 20:53:23 +03:00
parent 8a47668bad
commit 1944bb8f1c
16 changed files with 290 additions and 246 deletions

View file

@ -157,11 +157,12 @@ class LocationController extends GetxController {
_mainWeather.value =
await WeatherAPI().getWeatherData(_latitude.value, _longitude.value);
final List<PendingNotificationRequest> pendingNotificationRequests =
await flutterLocalNotificationsPlugin.pendingNotificationRequests();
if (settings.notifications && pendingNotificationRequests.isEmpty) {
notlification(_mainWeather.value);
if (settings.notifications) {
final List<PendingNotificationRequest> pendingNotificationRequests =
await flutterLocalNotificationsPlugin.pendingNotificationRequests();
if (pendingNotificationRequests.isEmpty) {
notlification(_mainWeather.value);
}
}
await writeCache();