إصلاح أخطاء شاشة الكباتن من تحديث الذكاء الاصطناعي

This commit is contained in:
Hamza-Ayed
2026-07-26 13:44:07 +03:00
parent 330dfc6dba
commit e269cb9b70
21 changed files with 72156 additions and 71654 deletions
@@ -418,24 +418,24 @@ class _RidesDashboardScreenState extends State<RidesDashboardScreen>
'جارية',
controller.beginCount.toString(),
Icons.directions_car_rounded,
const Color(0xFF10B981))),
const Color(0xFF10B981), cs)),
Obx(() => _buildStatCard('جديدة', controller.newCount.toString(),
Icons.new_releases_rounded, const Color(0xFF3B82F6))),
Icons.new_releases_rounded, const Color(0xFF3B82F6), cs)),
Obx(() => _buildStatCard(
'مكتملة',
controller.completedCount.toString(),
Icons.check_circle_rounded,
const Color(0xFF14B8A6))),
const Color(0xFF14B8A6), cs)),
Obx(() => _buildStatCard(
'ملغاة',
controller.canceledCount.toString(),
Icons.cancel_rounded,
const Color(0xFFEF4444))),
const Color(0xFFEF4444), cs)),
Obx(() => _buildStatCard(
'الإيرادات',
controller.totalRevenue.value.toStringAsFixed(0),
Icons.payments_rounded,
const Color(0xFFF59E0B))),
const Color(0xFFF59E0B), cs)),
],
),
),
@@ -488,11 +488,11 @@ class _RidesDashboardScreenState extends State<RidesDashboardScreen>
Widget _buildSearchBar(ColorScheme cs) {
return Container(
decoration: BoxDecoration(
color: Colors.white,
color: cs.surface,
borderRadius: BorderRadius.circular(16),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.05),
color: cs.shadow.withValues(alpha: 0.05),
blurRadius: 8,
offset: const Offset(0, 4),
)
@@ -501,14 +501,14 @@ class _RidesDashboardScreenState extends State<RidesDashboardScreen>
child: TextField(
controller: controller.searchController,
onChanged: (val) => controller.filterRides(val),
style: TextStyle(color: textPrimary, fontWeight: FontWeight.w600),
style: TextStyle(color: cs.onSurface, fontWeight: FontWeight.w600),
decoration: InputDecoration(
hintText: 'ابحث عن رقم الرحلة، السائق، أو الراكب...',
hintStyle: TextStyle(color: Colors.grey[400], fontSize: 13),
prefixIcon: Icon(Icons.search_rounded, color: primaryColor),
hintStyle: TextStyle(color: cs.onSurfaceVariant, fontSize: 13),
prefixIcon: Icon(Icons.search_rounded, color: cs.primary),
suffixIcon: controller.searchController.text.isNotEmpty
? IconButton(
icon: const Icon(Icons.close_rounded, color: Colors.grey),
icon: Icon(Icons.close_rounded, color: cs.onSurfaceVariant),
onPressed: () {
controller.searchController.clear();
controller.filterRides('');
@@ -527,23 +527,23 @@ class _RidesDashboardScreenState extends State<RidesDashboardScreen>
// تصميم بطاقة الرحلة (المدمج والمنظم - Slim Design)
// ═══════════════════════════════════════════════════════════════════════════
Widget _buildRideCardCompact(RideDashboardModel ride, bool isAdmin) {
Widget _buildRideCardCompact(RideDashboardModel ride, bool isAdmin, ColorScheme cs) {
Color statusColor = _getStatusColor(ride.status);
String statusText = _getStatusText(ride.status);
return Container(
margin: const EdgeInsets.only(bottom: 16),
decoration: BoxDecoration(
color: Colors.white,
color: cs.surface,
borderRadius: BorderRadius.circular(20),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.04),
color: cs.shadow.withValues(alpha: 0.04),
blurRadius: 10,
offset: const Offset(0, 4),
),
],
border: Border.all(color: Colors.grey.withOpacity(0.1)),
border: Border.all(color: cs.outline.withValues(alpha: 0.1)),
),
child: Material(
color: Colors.transparent,
@@ -567,11 +567,11 @@ class _RidesDashboardScreenState extends State<RidesDashboardScreen>
Container(
padding: const EdgeInsets.all(6),
decoration: BoxDecoration(
color: primaryColor.withOpacity(0.1),
color: cs.primary.withValues(alpha: 0.1),
borderRadius: BorderRadius.circular(8),
),
child: Icon(Icons.confirmation_number_rounded,
color: primaryColor, size: 18),
color: cs.primary, size: 18),
),
const SizedBox(width: 10),
Column(
@@ -582,13 +582,13 @@ class _RidesDashboardScreenState extends State<RidesDashboardScreen>
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.bold,
color: textPrimary),
color: cs.onSurface),
),
Text(
'${ride.date} • ${ride.time}',
style: TextStyle(
fontSize: 11,
color: Colors.grey[500],
color: cs.onSurfaceVariant,
fontWeight: FontWeight.w600),
),
],
@@ -672,7 +672,7 @@ class _RidesDashboardScreenState extends State<RidesDashboardScreen>
padding:
const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
decoration: BoxDecoration(
color: bgColor,
color:Colors.white,
borderRadius: BorderRadius.circular(12),
),
child: Column(