refactor(tactical-app): modernize state management with GetX controllers, bindings, and clean MVP architecture
This commit is contained in:
@@ -1,9 +1,22 @@
|
||||
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();
|
||||
@@ -16,10 +29,12 @@ class TacticalApp extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
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'),
|
||||
|
||||
Reference in New Issue
Block a user