Update: 2026-06-14 05:48:58

This commit is contained in:
Hamza-Ayed
2026-06-14 05:48:58 +03:00
parent 2645ed0cf1
commit 8e3b9eca4d
22 changed files with 789 additions and 179 deletions

View File

@@ -412,10 +412,21 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
}
}
// ==============================================================================
// 🟢 دوال معالجة قبول الطلب وتجهيز المتغيرات 🟢
// ==============================================================================
bool _isProcessingAccept = false;
// ==============================================================================
// 🟢 دوال معالجة قبول الطلب وتجهيز المتغيرات 🟢
// ==============================================================================
Future<void> _processAcceptOrder(List<dynamic> data) async {
if (_isProcessingAccept) {
print("⏳ _processAcceptOrder: Already accepting order, skipping duplicate request.");
return;
}
_isProcessingAccept = true;
Get.dialog(
WillPopScope(
onWillPop: () async => false,
@@ -485,6 +496,8 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
}
print("❌ Error in accept process: $e");
Get.snackbar("خطأ", "حدث خطأ غير متوقع");
} finally {
_isProcessingAccept = false;
}
}