61 lines
2.4 KiB
Dart
61 lines
2.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_localizations/flutter_localizations.dart';
|
|
import 'package:get/get.dart';
|
|
import 'bindings/tactical_binding.dart';
|
|
import 'screens/tactical_map_screen.dart';
|
|
import 'services/landmark_database.dart';
|
|
import 'services/offline_routing_engine.dart';
|
|
|
|
/// ============================================================================
|
|
/// [main] - المدخل الرئيسي لتطبيق العمليات التكتيكية الميدانية (Intaleq Defense)
|
|
/// ============================================================================
|
|
/// English:
|
|
/// Application entry point initializing local SQLite cache, topological routing
|
|
/// graphs, GetX State Management, and tactical dark sovereign UI themes.
|
|
///
|
|
/// العربية:
|
|
/// نقطة انطلاق التطبيق، تقوم بتهيئة قواعد بيانات المعالم المحلية، محرك التوجيه،
|
|
/// حقن متحكمات GetX وتفعيل الثيم العسكري الليلي مع دعم اتجاه الكتابة من اليمين (RTL).
|
|
/// ============================================================================
|
|
void main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
await LandmarkDatabase.initCache();
|
|
OfflineRoutingEngine.initialize();
|
|
runApp(const TacticalApp());
|
|
}
|
|
|
|
class TacticalApp extends StatelessWidget {
|
|
const TacticalApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GetMaterialApp(
|
|
title: 'منظومة الخرائط التكتيكية والملاحة الميدانية - Intaleq Tactical Navigation',
|
|
debugShowCheckedModeBanner: false,
|
|
initialBinding: TacticalBinding(),
|
|
locale: const Locale('ar', 'JO'),
|
|
fallbackLocale: const Locale('en', 'US'),
|
|
supportedLocales: const [
|
|
Locale('ar', 'JO'),
|
|
Locale('en', 'US'),
|
|
],
|
|
localizationsDelegates: const [
|
|
GlobalMaterialLocalizations.delegate,
|
|
GlobalWidgetsLocalizations.delegate,
|
|
GlobalCupertinoLocalizations.delegate,
|
|
],
|
|
theme: ThemeData(
|
|
useMaterial3: true,
|
|
brightness: Brightness.dark,
|
|
scaffoldBackgroundColor: const Color(0xFF090E17),
|
|
colorScheme: const ColorScheme.dark(
|
|
primary: Color(0xFF0071E3),
|
|
secondary: Color(0xFF4ADE80),
|
|
surface: Color(0xFF0F172A),
|
|
),
|
|
),
|
|
home: const TacticalMapScreen(),
|
|
);
|
|
}
|
|
}
|