26-1-22/3
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user