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 'dart:async';
import 'dart:convert';
import 'dart:math' as math;
@@ -210,7 +211,7 @@ class _SiroTrackerScreenState extends State<SiroTrackerScreen>
shape: BoxShape.circle,
gradient: LinearGradient(
colors: isLiveMode
? [const Color(0xFF10B981), const Color(0xFF10B981)]
? [cs.success, cs.success]
: [cs.tertiary, cs.tertiary],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
@@ -218,7 +219,7 @@ class _SiroTrackerScreenState extends State<SiroTrackerScreen>
boxShadow: [
BoxShadow(
color: (isLiveMode
? const Color(0xFF10B981)
? cs.success
: cs.tertiary)
.withValues(alpha: 0.5),
blurRadius: 12,
@@ -281,7 +282,7 @@ class _SiroTrackerScreenState extends State<SiroTrackerScreen>
decoration: BoxDecoration(
gradient: LinearGradient(
colors: isLiveMode
? [const Color(0xFF10B981), const Color(0xFF10B981)]
? [cs.success, cs.success]
: [cs.tertiary, cs.tertiary],
),
borderRadius: BorderRadius.circular(12),
@@ -417,7 +418,7 @@ class _SiroTrackerScreenState extends State<SiroTrackerScreen>
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
_buildStatItem("✓ مكتملة", completed, const Color(0xFF10B981), cs),
_buildStatItem("✓ مكتملة", completed, cs.success, cs),
Container(
width: 1,
height: 40,
@@ -635,7 +636,7 @@ class _SiroTrackerScreenState extends State<SiroTrackerScreen>
setState(() => isLiveMode = true);
fetchData();
},
const Color(0xFF10B981),
cs.success,
cs,
),
),
@@ -646,7 +647,7 @@ class _SiroTrackerScreenState extends State<SiroTrackerScreen>
icon: Icons.live_tv,
label: "نشط الآن (مباشر)",
value: liveCount.toString(),
color: const Color(0xFF10B981),
color: cs.success,
cs: cs,
),
const SizedBox(height: 12),
@@ -685,7 +686,7 @@ class _SiroTrackerScreenState extends State<SiroTrackerScreen>
size: 14,
color: isLoading
? cs.tertiary
: const Color(0xFF10B981),
: cs.success,
),
],
),