Update: 2026-08-07 06:00:56

This commit is contained in:
Hamza-Ayed
2026-08-07 06:00:56 +03:00
parent 67465df000
commit 92a6aa5c0f
11 changed files with 443 additions and 15 deletions
@@ -475,21 +475,36 @@ class _OrderOverlayState extends State<OrderOverlay>
Row(
children: [
Icon(
isExclusive ? Icons.star_rounded : Icons.drive_eta_rounded,
color: isExclusive ? const Color(0xFFFFD54F) : AppColors.white,
orderData?.isScheduled == true
? Icons.schedule
: isExclusive
? Icons.star_rounded
: Icons.drive_eta_rounded,
color: orderData?.isScheduled == true
? const Color(0xFFB39DDB)
: isExclusive
? const Color(0xFFFFD54F)
: AppColors.white,
size: 24,
),
const SizedBox(width: 8),
// ‏العنوان يحمل حالة العرض: خاص خلال السبق، عام بعده، و"طلب
// ‏جديد" في البثّ الحر حيث لا معنى للتمييز.
Text(
orderData?.offerType == null
? "طلب جديد".tr
: (isExclusive ? "⭐ طلب خاص لك".tr : "🌐 طلب عام".tr),
orderData?.isScheduled == true
// ‏الأولوية للمجدولة: معلومة دائمة عن الرحلة تسبق حالة
// ‏العرض المؤقتة، والسائق يحتاجها ليقرر إن كان يستطيع
// ‏الالتزام بالموعد.
? "🗓️ رحلة مجدولة".tr
: orderData?.offerType == null
? "طلب جديد".tr
: (isExclusive ? "⭐ طلب خاص لك".tr : "🌐 طلب عام".tr),
style: TextStyle(
color: isExclusive
? const Color(0xFFFFD54F)
: AppColors.white,
color: orderData?.isScheduled == true
? const Color(0xFFB39DDB)
: isExclusive
? const Color(0xFFFFD54F)
: AppColors.white,
fontSize: 18,
fontWeight: FontWeight.w600),
),
@@ -116,7 +116,7 @@ class OrderRequestPage extends StatelessWidget {
OfferTypeBadge(rideInfo: controller.offerInfo!),
const SizedBox(width: 10),
],
// شارة الرحلة المؤجلة — موعد مضبوط لا طلب فوري
// شارة الرحلة المجدولة — موعد مضبوط لا طلب فوري
if (ScheduledRideBadge.isScheduled(
controller.scheduleInfo)) ...[
ScheduledRideBadge(