chore: add build artifacts, map assets, and routing data

This commit is contained in:
Hamza-Ayed
2026-09-19 12:34:24 +03:00
parent aa2b9f131f
commit 43ad2e0ad4
327 changed files with 52421 additions and 1810 deletions
@@ -39,9 +39,6 @@ class _OfflinePackageDialogState extends State<OfflinePackageDialog> {
@override
Widget build(BuildContext context) {
final canSync = _info?.canSyncNow ?? true;
final remaining = _info?.daysUntilNextSync ?? 0;
return Dialog(
backgroundColor: const Color(0xFF0F172A),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20), side: const BorderSide(color: Color(0xFF0071E3), width: 1.5)),
@@ -102,9 +99,9 @@ class _OfflinePackageDialogState extends State<OfflinePackageDialog> {
const Divider(color: Colors.white12, height: 14),
_buildStatRow('حجم معالم PostGIS المفهرسة:', '~25 MB (SQLite FTS5 سريع)'),
const Divider(color: Colors.white12, height: 14),
_buildStatRow('محرك التوجيه غير المتصل:', '100% On-Device (خوارزمية A*)'),
_buildStatRow('محرك التوجيه غير المتصل:', '100% On-Device (محرك Valhalla الحقيقي)'),
const Divider(color: Colors.white12, height: 14),
_buildStatRow('قفل المزامنة الميداني:', 'كل 14 يوماً لحماية السيرفر'),
_buildStatRow('تحديث الحزم الميدانية:', 'متاح دائماً وفوري عند الطلب'),
if (_info?.lastSyncTime != null) ...[
const Divider(color: Colors.white12, height: 14),
_buildStatRow(
@@ -161,27 +158,23 @@ class _OfflinePackageDialogState extends State<OfflinePackageDialog> {
child: ElevatedButton.icon(
onPressed: _isDownloading
? null
: (canSync
? () => _startSync()
: () => _startSync(force: true)),
: () => _startSync(force: true),
icon: _isDownloading
? const SizedBox(width: 14, height: 14, child: CircularProgressIndicator(strokeWidth: 2, color: Colors.white))
: Icon(canSync ? Icons.sync : Icons.lock_clock, size: 16),
: const Icon(Icons.cloud_download, size: 16),
label: Text(
_isDownloading
? 'جاري المزامنة...'
: (canSync
? 'مزامنة وتحديث الحزمة الآن'
: 'الحزمة محدثة (تحديث إجباري / متبقي $remaining يوم)'),
? 'جاري التنزيل والمزامنة...'
: 'مزامنة وتنزيل الحزمة الآن (غراف الطرق الحقيقي + المعالم)',
style: const TextStyle(fontSize: 11.5, fontWeight: FontWeight.bold),
),
style: ElevatedButton.styleFrom(
backgroundColor: canSync ? const Color(0xFF0071E3) : const Color(0xFF1E293B),
backgroundColor: const Color(0xFF0071E3),
foregroundColor: Colors.white,
padding: const EdgeInsets.symmetric(vertical: 12),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
side: BorderSide(color: canSync ? const Color(0xFF0071E3) : Colors.white24),
side: const BorderSide(color: Color(0xFF0071E3)),
),
),
),