mirror of
https://github.com/darkmoonight/Rain.git
synced 2025-06-28 20:19:58 +00:00
fix
This commit is contained in:
parent
8a47668bad
commit
1944bb8f1c
16 changed files with 290 additions and 246 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue