Update: 2026-08-02 22:51:18

This commit is contained in:
Hamza-Ayed
2026-08-02 22:51:18 +03:00
parent c9af364cbc
commit 2c962bf80a
39 changed files with 627 additions and 191 deletions
@@ -1,3 +1,4 @@
import 'package:siro_admin/constant/theme.dart';
import 'package:fl_chart/fl_chart.dart';
import 'package:flutter/material.dart';
import 'package:flutter_staggered_animations/flutter_staggered_animations.dart';
@@ -62,7 +63,7 @@ class StaticDash extends StatelessWidget {
spots: c.chartDataDrivers,
compareSpots:
c.isComparing ? c.chartDataDriversCompare : null,
color: const Color(0xFFF59E0B),
color: cs.warning,
icon: Icons.drive_eta_rounded,
controller: c,
cs: cs,
@@ -146,7 +147,7 @@ class StaticDash extends StatelessWidget {
compareSpots: c.isComparing
? c.chartDataDriversMatchingNotesCompare
: null,
color: const Color(0xFF10B981),
color: cs.success,
icon: Icons.phone_in_talk_rounded,
controller: c,
cs: cs,
@@ -354,7 +355,7 @@ class _KpiRow extends StatelessWidget {
_KpiItem('الركاب', controller.totalMonthlyPassengers,
Icons.groups_rounded, cs.tertiary),
_KpiItem('السائقون', controller.totalMonthlyDrivers,
Icons.drive_eta_rounded, const Color(0xFFF59E0B)),
Icons.drive_eta_rounded, cs.warning),
_KpiItem(
'الرحلات', controller.totalMonthlyRides, Icons.map_rounded, cs.primary),
];
@@ -822,13 +823,13 @@ class _EmployeeLeaderboard extends StatelessWidget {
Container(
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
color: const Color(0xFFF59E0B).withValues(alpha: 0.12),
color: cs.warning.withValues(alpha: 0.12),
borderRadius: BorderRadius.circular(9),
border: Border.all(
color: const Color(0xFFF59E0B).withValues(alpha: 0.25)),
color: cs.warning.withValues(alpha: 0.25)),
),
child: const Icon(Icons.emoji_events_rounded,
color: Color(0xFFF59E0B), size: 16),
child: Icon(Icons.emoji_events_rounded,
color: cs.warning, size: 16),
),
const SizedBox(width: 10),
Column(
@@ -930,7 +931,7 @@ class _RankBadge extends StatelessWidget {
Widget build(BuildContext context) {
final isTop3 = rank <= 3;
final medalColors = [
const Color(0xFFF59E0B),
cs.warning,
cs.onSurfaceVariant,
const Color(0xFFCD7F32)
];