How marioibrahem1/pro-dlm works
Project type and purpose
• Full-stack mobile (and desktop/web) client application built in Flutter
• Purpose: assist users on the road—chat with AI, request help, show maps/places, send notifications, collect ratings
• No standalone backend code is included; the app consumes external APIs and services
High-level architectural components
a. Platform targets (Android, iOS, Web, Windows)
b. Flutter engine & framework
c. Application code (Dart):
‑ UI layer (lib/ui)
‑ State/Domain layer (lib/providers, lib/models)
‑ Data/Infrastructure layer (lib/services)
‑ Utility helpers (lib/utils)
d. Assets & configurations (assets/, pubspec.yaml)
e. External systems:
‑ Chat AI (Gemini/OpenAI)
‑ Help-request backend API
‑ Places API (Google Maps/Places)
‑ Notification services (local & push)
Relationships and interactions
• At runtime, the user interacts with UI screens/widgets.
• UI widgets dispatch actions to Providers (state managers).
• Providers call Services to fetch/push data.
• Services perform HTTP calls over REST/gRPC to external systems (chat AI, maps, help-request server, profile server).
• Data flows back through Services → Providers → UI.
• Utility modules support cross-cutting concerns (theme, animations, location).
• Platform channels handle OS integrations (notifications, local storage, maps renderer).
Important architectural patterns & design principles
• Layered architecture (Presentation → Domain → Data)
• Provider for state-management (dependency injection)
• Service abstractions for all external calls (single responsibility)
• MVC/MVVM-like separation: Widgets (View) ← Providers (ViewModel) ← Services (Model/Data)
• Cross-platform code sharing via Flutter engine