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

This commit is contained in:
Hamza-Ayed
2026-07-26 12:18:23 +03:00
parent 16feb51a75
commit 4b5235c35c
16 changed files with 72976 additions and 72556 deletions
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:latlong2/latlong.dart';
import 'package:dio/dio.dart';
import 'package:get/get.dart';
import 'package:siro_admin/constant/links.dart';
class HeatmapPage extends StatefulWidget {
@@ -100,27 +101,54 @@ class _HeatmapPageState extends State<HeatmapPage> {
return Scaffold(
backgroundColor: cs.surface,
appBar: AppBar(
title: const Text(
'خريطة النشاط الحرارية',
style: TextStyle(fontWeight: FontWeight.w700, fontSize: 15),
),
backgroundColor: cs.surface,
foregroundColor: cs.onSurface,
centerTitle: true,
actions: [
IconButton(
icon: const Icon(Icons.refresh_rounded),
tooltip: 'تحديث',
onPressed: _applyFilter,
),
],
),
body: Column(
children: [
Container(
color: cs.surfaceContainerHighest,
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
padding: const EdgeInsets.fromLTRB(16, 50, 16, 16),
child: Row(
children: [
GestureDetector(
onTap: () => Get.back(),
child: Container(
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
color: cs.surfaceContainerHighest,
borderRadius: BorderRadius.circular(10),
border: Border.all(color: cs.outline),
),
child: Icon(Icons.arrow_back_ios_new_rounded,
color: cs.onSurfaceVariant, size: 16),
),
),
const SizedBox(width: 12),
const Text('خريطة النشاط الحرارية',
style: TextStyle(
color: Colors.black,
fontSize: 17,
fontWeight: FontWeight.bold)),
const Spacer(),
GestureDetector(
onTap: _applyFilter,
child: Container(
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
color: cs.surfaceContainerHighest,
borderRadius: BorderRadius.circular(10),
border: Border.all(color: cs.outline),
),
child: Icon(Icons.refresh_rounded,
color: cs.onSurfaceVariant, size: 16),
),
),
],
),
),
Expanded(
child: Column(
children: [
Container(
color: cs.surfaceContainerHighest,
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
child: Column(
children: [
_buildFilterRow(
@@ -273,7 +301,10 @@ class _HeatmapPageState extends State<HeatmapPage> {
),
],
),
);
),
],
),
);
}
Widget _buildFilterRow({
@@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_staggered_animations/flutter_staggered_animations.dart';
import 'package:get/get.dart';
import 'package:fl_chart/fl_chart.dart';
import '../../../constant/colors.dart';
import '../../../controller/admin/marketing_controller.dart';
class MarketingPage extends StatelessWidget {
@@ -481,7 +480,7 @@ class MarketingPage extends StatelessWidget {
hintText: 'سعر الكيلومتر المقترح',
hintStyle: TextStyle(color: cs.onSurfaceVariant, fontSize: 12),
filled: true,
fillColor: AppColor.surfaceElevated,
fillColor: cs.surfaceContainerLow,
border: OutlineInputBorder(borderRadius: BorderRadius.circular(8), borderSide: BorderSide.none),
contentPadding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
),
@@ -737,7 +736,7 @@ class MarketingPage extends StatelessWidget {
style: TextStyle(fontSize: 12, color: cs.onSurface),
decoration: InputDecoration(
filled: true,
fillColor: AppColor.surfaceElevated,
fillColor: cs.surfaceContainerLow,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(10),
borderSide: BorderSide(color: cs.outline),
@@ -806,11 +805,11 @@ class MarketingPage extends StatelessWidget {
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
AppColor.surfaceElevated,
cs.surfaceContainerLow,
cs.surfaceContainerHighest,
],
),
border: Border.all(color: AppColor.accentBorder),
border: Border.all(color: cs.outlineVariant),
boxShadow: [
BoxShadow(
color: cs.primary.withValues(alpha: 0.08),
@@ -46,23 +46,50 @@ class SocialIntelligenceScreen extends StatelessWidget {
return Scaffold(
backgroundColor: cs.surface,
appBar: AppBar(
title: Text(
'استخبارات السوشيال ميديا (Social Intelligence)',
style: TextStyle(fontWeight: FontWeight.w700, fontSize: 16, color: cs.onSurface),
),
backgroundColor: cs.surface,
elevation: 0,
foregroundColor: cs.onSurface,
iconTheme: IconThemeData(color: cs.onSurface),
actions: [
IconButton(
icon: Icon(Icons.refresh, color: cs.onSurface),
onPressed: () => controller.fetchReports(),
)
],
),
body: Obx(() {
body: Column(
children: [
Container(
padding: const EdgeInsets.fromLTRB(16, 50, 16, 16),
child: Row(
children: [
GestureDetector(
onTap: () => Get.back(),
child: Container(
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
color: cs.surfaceContainerHighest,
borderRadius: BorderRadius.circular(10),
border: Border.all(color: cs.outline),
),
child: Icon(Icons.arrow_back_ios_new_rounded,
color: cs.onSurfaceVariant, size: 16),
),
),
const SizedBox(width: 12),
Text('استخبارات السوشيال ميديا',
style: TextStyle(
color: cs.onSurface,
fontSize: 17,
fontWeight: FontWeight.bold)),
const Spacer(),
GestureDetector(
onTap: () => controller.fetchReports(),
child: Container(
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
color: cs.surfaceContainerHighest,
borderRadius: BorderRadius.circular(10),
border: Border.all(color: cs.outline),
),
child: Icon(Icons.refresh,
color: cs.onSurfaceVariant, size: 16),
),
),
],
),
),
Expanded(
child: Obx(() {
if (controller.isLoading.value) {
return Center(
child: CircularProgressIndicator(color: cs.primary));
@@ -135,6 +162,9 @@ class SocialIntelligenceScreen extends StatelessWidget {
},
);
}),
);
),
],
),
);
}
}