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
@@ -4,6 +4,7 @@ import '../models/landmark.dart';
import '../services/landmark_database.dart';
import '../services/local_sqlite_db.dart';
import '../services/offline_routing_engine.dart';
import '../services/offline_routing_package_service.dart';
import '../services/tactical_api_service.dart';
class TacticalRoutePlannerSheet extends StatefulWidget {
@@ -125,16 +126,16 @@ class _TacticalRoutePlannerSheetState extends State<TacticalRoutePlannerSheet> {
return;
}
Navigator.pop(context);
widget.onClose();
widget.onRouteConfirmed(_origin, _destination!, _selectedProfile, false);
}
@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.only(top: 14, left: 16, right: 16, bottom: 24),
padding: const EdgeInsets.all(16),
decoration: const BoxDecoration(
color: Color(0xF50F172A),
color: Color(0xFF090E1A),
borderRadius: BorderRadius.vertical(top: Radius.circular(24)),
border: Border(top: BorderSide(color: Color(0xFF0071E3), width: 2)),
boxShadow: [BoxShadow(color: Colors.black87, blurRadius: 30)],
@@ -152,7 +153,7 @@ class _TacticalRoutePlannerSheetState extends State<TacticalRoutePlannerSheet> {
Container(
padding: const EdgeInsets.all(6),
decoration: BoxDecoration(
color: const Color(0x330071E3),
color: const Color(0xFF0071E3).withValues(alpha: 0.15),
borderRadius: BorderRadius.circular(8),
border: Border.all(color: const Color(0xFF0071E3)),
),
@@ -183,6 +184,50 @@ class _TacticalRoutePlannerSheetState extends State<TacticalRoutePlannerSheet> {
const SizedBox(height: 12),
// Real road network engine status (on-device Valhalla package)
ValueListenableBuilder<RoutingPackageStatus>(
valueListenable: OfflineRoutingPackageService.status,
builder: (context, pkgStatus, _) {
return FutureBuilder<bool>(
future: OfflineRoutingPackageService.isInstalled(),
builder: (context, snapshot) {
final installed = snapshot.data ?? false;
final color = installed ? const Color(0xFF22C55E) : const Color(0xFFF59E0B);
final label = installed
? 'التوجيه المحلي: شبكة الطرق الحقيقية للأردن + SRTM جاهزة (بدون إنترنت)'
: 'التوجيه المحلي الدقيق غير مثبت — نزّل حزمة الطرق من إعدادات الحزم';
return Container(
margin: const EdgeInsets.only(bottom: 10),
padding: const EdgeInsets.all(16),
decoration: BoxDecoration(
color: color.withValues(alpha: 0.08),
borderRadius: BorderRadius.circular(8),
border: Border.all(color: color.withValues(alpha: 0.4)),
),
child: Row(
children: [
Icon(installed ? Icons.route : Icons.download_rounded, color: color, size: 14),
const SizedBox(width: 8),
Expanded(
child: Text(
label,
style: TextStyle(color: color, fontSize: 9.5),
),
),
if (!installed && pkgStatus == RoutingPackageStatus.downloading)
SizedBox(
width: 10,
height: 10,
child: CircularProgressIndicator(strokeWidth: 1.5, color: color),
),
],
),
);
},
);
},
),
// Origin & Destination Box
Container(
padding: const EdgeInsets.all(12),
@@ -214,10 +259,7 @@ class _TacticalRoutePlannerSheetState extends State<TacticalRoutePlannerSheet> {
IconButton(
icon: const Icon(Icons.touch_app, size: 18, color: Color(0xFF38BDF8)),
tooltip: 'تحديد نقطة البداية على الخريطة',
onPressed: () {
Navigator.pop(context);
widget.onPickOriginOnMap();
},
onPressed: widget.onPickOriginOnMap,
),
],
),
@@ -247,7 +289,7 @@ class _TacticalRoutePlannerSheetState extends State<TacticalRoutePlannerSheet> {
_destSearchCtrl.clear();
_onSearch('');
},
)
)
: null,
),
),
@@ -255,10 +297,7 @@ class _TacticalRoutePlannerSheetState extends State<TacticalRoutePlannerSheet> {
IconButton(
icon: const Icon(Icons.touch_app, size: 18, color: Color(0xFFF59E0B)),
tooltip: 'تحديد الهدف على الخريطة',
onPressed: () {
Navigator.pop(context);
widget.onPickDestinationOnMap();
},
onPressed: widget.onPickDestinationOnMap,
),
],
),
@@ -326,7 +365,7 @@ class _TacticalRoutePlannerSheetState extends State<TacticalRoutePlannerSheet> {
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFF0071E3),
foregroundColor: Colors.white,
padding: const EdgeInsets.symmetric(vertical: 13),
padding: const EdgeInsets.all(16),
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
),
),
@@ -342,7 +381,7 @@ class _TacticalRoutePlannerSheetState extends State<TacticalRoutePlannerSheet> {
child: GestureDetector(
onTap: () => setState(() => _selectedProfile = prof),
child: Container(
padding: const EdgeInsets.symmetric(vertical: 8),
padding: const EdgeInsets.all(16),
decoration: BoxDecoration(
color: isSelected ? const Color(0xFF0071E3) : const Color(0xFF1E293B),
borderRadius: BorderRadius.circular(10),