Update: 2026-08-03 11:32:12
This commit is contained in:
@@ -11,6 +11,7 @@ class DailyNotesView extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final cs = Theme.of(context).colorScheme;
|
||||
// نستخدم نفس الكونترولر للوصول لدالة جلب الملاحظات
|
||||
final controller = Get.find<StaticController>();
|
||||
|
||||
@@ -31,9 +32,9 @@ class DailyNotesView extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
centerTitle: true,
|
||||
backgroundColor: Colors.white,
|
||||
backgroundColor: cs.surface,
|
||||
elevation: 0,
|
||||
iconTheme: const IconThemeData(color: Colors.black87),
|
||||
iconTheme: IconThemeData(color: cs.onSurface),
|
||||
),
|
||||
body: GetBuilder<StaticController>(
|
||||
builder: (controller) {
|
||||
@@ -47,10 +48,10 @@ class DailyNotesView extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(Icons.note_alt_outlined,
|
||||
size: 80, color: cs.onSurfaceVariant.shade300),
|
||||
size: 80, color: cs.onSurfaceVariant),
|
||||
const SizedBox(height: 10),
|
||||
Text("لا توجد سجلات لهذا اليوم",
|
||||
style: TextStyle(color: cs.onSurfaceVariant.shade600)),
|
||||
style: TextStyle(color: cs.onSurfaceVariant)),
|
||||
],
|
||||
),
|
||||
);
|
||||
@@ -102,7 +103,7 @@ class DailyNotesView extends StatelessWidget {
|
||||
name.toUpperCase(),
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
color: cs.onSurfaceVariant.shade800,
|
||||
color: cs.onSurfaceVariant,
|
||||
fontSize: 14),
|
||||
),
|
||||
const SizedBox(width: 100),
|
||||
@@ -116,7 +117,7 @@ class DailyNotesView extends StatelessWidget {
|
||||
phone,
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
color: cs.onSurfaceVariant.shade800,
|
||||
color: cs.onSurfaceVariant,
|
||||
fontSize: 14),
|
||||
),
|
||||
Icon(Icons.phone)
|
||||
@@ -127,7 +128,7 @@ class DailyNotesView extends StatelessWidget {
|
||||
Text(
|
||||
time.split(' ').last, // عرض الوقت فقط
|
||||
style: TextStyle(
|
||||
color: cs.onSurfaceVariant.shade400, fontSize: 12),
|
||||
color: cs.onSurfaceVariant, fontSize: 12),
|
||||
textDirection: TextDirection.ltr,
|
||||
),
|
||||
],
|
||||
@@ -139,7 +140,7 @@ class DailyNotesView extends StatelessWidget {
|
||||
content,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: cs.onSurfaceVariant.shade700,
|
||||
color: cs.onSurfaceVariant,
|
||||
height: 1.5),
|
||||
),
|
||||
],
|
||||
@@ -153,9 +154,10 @@ class DailyNotesView extends StatelessWidget {
|
||||
}
|
||||
|
||||
Color _getEmployeeColor(String name) {
|
||||
final cs = Theme.of(Get.context!).colorScheme;
|
||||
String n = name.toLowerCase().trim();
|
||||
if (n.contains('shahd')) return cs.danger;
|
||||
if (n.contains('mayar')) return cs.warning.shade700;
|
||||
if (n.contains('mayar')) return cs.warning;
|
||||
if (n.contains('rama2')) return cs.success;
|
||||
if (n.contains('rama1')) return cs.info;
|
||||
return Colors.blueGrey;
|
||||
|
||||
Reference in New Issue
Block a user