# joseluismadrid/trabajo_final_flutter architecture

> Architecture diagram of the GitHub repository joseluismadrid/trabajo_final_flutter, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/joseluismadrid/trabajo_final_flutter
- Repository: https://github.com/joseluismadrid/trabajo_final_flutter

## Overview

##### Project type and purpose
- This is a cross-platform Flutter application (mobile, web, desktop).
- Purpose: a client-side app with three main screens (menu, camera/photo capture, map display).

##### File structure
- lib/
- main.dart – entry point and navigation setup
- screens/ – Dart UI files (menu.dart, foto.dart, mapa.dart)
- android/, ios/, linux/, macos/, windows/, web/
- Platform folders each containing native embedders (MainActivity.kt, AppDelegate.swift, CMakeLists, index.html, etc.)
- pubspec.yaml / pubspec.lock – Dart dependencies (presumably camera, geolocator, maps plugins)
- Build & config files (Gradle, Xcode projects, CMake, Flutter-generated registrant code)

##### README
- States only “A new Flutter project,” confirming no extra backend or microservice components—pure client application.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Presentation Layer
    subgraph "Presentation Layer"
        direction TB
        Main["main.dart"]:::ui
        Menu["MenuScreen"]:::ui
        Photo["PhotoScreen"]:::ui
        Map["MapScreen"]:::ui
    end

    %% Business Logic Layer
    subgraph "Business Logic Layer"
        direction TB
        Logic["AppBloc/Controller"]:::logic
    end

    %% Plugin Layer
    subgraph "Plugin Layer"
        direction TB
        Cam["Camera Plugin"]:::plugin
        Geo["Geolocator Plugin"]:::plugin
        Maps["Maps Plugin"]:::plugin
    end

    %% Engine & Embedder Layer
    subgraph "Engine & Embedder"
        direction TB
        Engine["Flutter Engine"]:::engine
        subgraph "Embedder Layer"
            direction TB
            Android["Android Embedder"]:::engine
            iOS["iOS Embedder"]:::engine
            Linux["Linux Embedder"]:::engine
            macOS["macOS Embedder"]:::engine
            Windows["Windows Embedder"]:::engine
            Web["Web Embedder"]:::engine
        end
    end

    %% OS Services
    subgraph "OS Services"
        direction TB
        OS_Cam["Camera API"]:::os
        OS_Loc["Location API"]:::os
        OS_Graph["Graphics"]:::os
    end

    %% External Services
    External["External Services\n(Google Maps API)"]:::external

    %% Navigation Flow
    Menu -->|"navigate to"| Photo
    Menu -->|"navigate to"| Map

    %% Data Flow
    Menu -->|"dispatch events"| Logic
    Photo -->|"dispatch events"| Logic
    Map -->|"dispatch events"| Logic
    Logic -->|"invoke"| Cam
    Logic -->|"invoke"| Geo
    Logic -->|"invoke"| Maps
    Cam -->|"calls"| OS_Cam
    Geo -->|"calls"| OS_Loc
    Maps -->|"calls"| OS_Graph
    Maps -->|"fetch data from"| External
    Engine -->|"renders"| Main
    Engine -->|"hosts"| Logic
    Engine -->|"interfaces with"| Cam
    Engine -->|"interfaces with"| Geo
    Engine -->|"interfaces with"| Maps
    Android --> Engine
    iOS --> Engine
    Linux --> Engine
    macOS --> Engine
    Windows --> Engine
    Web --> Engine

    %% Click Events
    click Main "https://github.com/joseluismadrid/trabajo_final_flutter/blob/main/lib/main.dart"
    click Menu "https://github.com/joseluismadrid/trabajo_final_flutter/blob/main/lib/screens/menu.dart"
    click Photo "https://github.com/joseluismadrid/trabajo_final_flutter/blob/main/lib/screens/foto.dart"
    click Map "https://github.com/joseluismadrid/trabajo_final_flutter/blob/main/lib/screens/mapa.dart"
    click Cam "https://github.com/joseluismadrid/trabajo_final_flutter/blob/main/pubspec.yaml"
    click Android "https://github.com/joseluismadrid/trabajo_final_flutter/blob/main/android/app/src/main/kotlin/com/example/final_proyecto/MainActivity.kt"
    click iOS "https://github.com/joseluismadrid/trabajo_final_flutter/blob/main/ios/Runner/AppDelegate.swift"
    click Linux "https://github.com/joseluismadrid/trabajo_final_flutter/blob/main/linux/main.cc"
    click macOS "https://github.com/joseluismadrid/trabajo_final_flutter/blob/main/macos/Runner/AppDelegate.swift"
    click Windows "https://github.com/joseluismadrid/trabajo_final_flutter/blob/main/windows/runner/main.cpp"
    click Web "https://github.com/joseluismadrid/trabajo_final_flutter/blob/main/web/index.html"

    %% Styles
    classDef ui fill:#ADD8E6,stroke:#333,stroke-width:1px
    classDef logic fill:#90EE90,stroke:#333,stroke-width:1px
    classDef plugin fill:#FFA500,stroke:#333,stroke-width:1px
    classDef engine fill:#D3D3D3,stroke:#333,stroke-width:1px
    classDef os fill:#00008B,stroke:#fff,stroke-width:1px,color:#fff
    classDef external fill:#DDA0DD,stroke:#333,stroke-width:1px
```
