Update: 2026-08-03 00:20:40

This commit is contained in:
Hamza-Ayed
2026-08-03 00:20:40 +03:00
parent c23c3c0721
commit 2b9f696372
39 changed files with 38513 additions and 38217 deletions
@@ -1,3 +1,4 @@
import 'package:siro_admin/constant/theme.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:siro_admin/controller/functions/launch.dart';
@@ -46,10 +47,10 @@ class DailyNotesView extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.note_alt_outlined,
size: 80, color: Colors.grey.shade300),
size: 80, color: cs.onSurfaceVariant.shade300),
const SizedBox(height: 10),
Text("لا توجد سجلات لهذا اليوم",
style: TextStyle(color: Colors.grey.shade600)),
style: TextStyle(color: cs.onSurfaceVariant.shade600)),
],
),
);
@@ -73,7 +74,7 @@ class DailyNotesView extends StatelessWidget {
borderRadius: BorderRadius.circular(16),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.03),
color: Colors.black.withValues(alpha: 0.03),
blurRadius: 10,
offset: const Offset(0, 4),
)
@@ -92,7 +93,7 @@ class DailyNotesView extends StatelessWidget {
CircleAvatar(
radius: 14,
backgroundColor:
_getEmployeeColor(name).withOpacity(0.1),
_getEmployeeColor(name).withValues(alpha: 0.1),
child: Icon(Icons.person,
size: 16, color: _getEmployeeColor(name)),
),
@@ -101,7 +102,7 @@ class DailyNotesView extends StatelessWidget {
name.toUpperCase(),
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.grey.shade800,
color: cs.onSurfaceVariant.shade800,
fontSize: 14),
),
const SizedBox(width: 100),
@@ -115,7 +116,7 @@ class DailyNotesView extends StatelessWidget {
phone,
style: TextStyle(
fontWeight: FontWeight.bold,
color: Colors.grey.shade800,
color: cs.onSurfaceVariant.shade800,
fontSize: 14),
),
Icon(Icons.phone)
@@ -126,7 +127,7 @@ class DailyNotesView extends StatelessWidget {
Text(
time.split(' ').last, // عرض الوقت فقط
style: TextStyle(
color: Colors.grey.shade400, fontSize: 12),
color: cs.onSurfaceVariant.shade400, fontSize: 12),
textDirection: TextDirection.ltr,
),
],
@@ -138,7 +139,7 @@ class DailyNotesView extends StatelessWidget {
content,
style: TextStyle(
fontSize: 14,
color: Colors.grey.shade700,
color: cs.onSurfaceVariant.shade700,
height: 1.5),
),
],
@@ -153,10 +154,10 @@ class DailyNotesView extends StatelessWidget {
Color _getEmployeeColor(String name) {
String n = name.toLowerCase().trim();
if (n.contains('shahd')) return Colors.redAccent;
if (n.contains('mayar')) return Colors.amber.shade700;
if (n.contains('rama2')) return Colors.green;
if (n.contains('rama1')) return Colors.blue;
if (n.contains('shahd')) return cs.danger;
if (n.contains('mayar')) return cs.warning.shade700;
if (n.contains('rama2')) return cs.success;
if (n.contains('rama1')) return cs.info;
return Colors.blueGrey;
}
}