26-1-22/3

This commit is contained in:
Hamza-Ayed
2026-01-22 23:00:59 +03:00
parent 12c5ce31a2
commit 38f7abcd59
3 changed files with 14 additions and 2 deletions

View File

@@ -485,6 +485,15 @@ class NotificationController extends GetxController {
}
}
// ==============================================================================
// دالة حذف إشعار الطلب (تستدعى عند أخذ الطلب من سائق آخر)
// ==============================================================================
Future<void> cancelOrderNotification() async {
// 1001 هو نفس الآيدي الذي استخدمناه عند عرض الإشعار
await _flutterLocalNotificationsPlugin.cancel(1001);
print("🗑️ Order Notification Cancelled (Taken by another driver)");
}
Future<void> _scheduleNotificationForTime(
int dayOffset,
int hour,