# lucasclx/acesso_mapeado architecture

> Architecture diagram of the GitHub repository lucasclx/acesso_mapeado, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lucasclx/acesso_mapeado
- Repository: https://github.com/lucasclx/acesso_mapeado

## Overview

#### Purpose and Runtime
Acesso Mapeado is a Flutter multiplatform accessibility-discovery application. Its intended product capabilities are nearby accessible locations, collaborative establishment updates, ratings with comments/photos, company rankings, and user/company profiles. The shared Dart UI targets Android, iOS, web, Linux, macOS, and Windows; native host shells bootstrap Flutter on each platform.

#### Application Entry and Composition
`lib/main.dart` is the Dart process entry point and launches the application defined in `lib/app.dart`. `lib/app.dart` is the likely root composition boundary for app-level theme, routing, and initial screen selection. The Android host begins through `android/app/src/main/kotlin/dev/mine/acesso/acesso_mapeado/MainActivity.kt`; equivalent native launch infrastructure exists under `ios/Runner/AppDelegate.swift` and `windows/runner/main.cpp`.

#### Startup and Session Gate
Splash behavior is separated into controller and view layers: `lib/controllers/splash.controller.dart` and `lib/pages/splash_page.dart`. This is the main startup control boundary, expected to determine when the app leaves loading and enters onboarding, authentication, or home. `lib/pages/onboarding_page.dart` provides the first-use path distinct from sign-in flow.

#### Identity and Account Flows
Authentication-facing views are isolated in `lib/pages/sign_in_page.dart` and `lib/pages/sign_up_page.dart`, with account presentation/configuration in `lib/pages/profile_user_page.dart`. README identifies Firebase Authentication as the intended identity provider, but no Firebase initialization or service-layer source is present in the supplied tree; backend integration is therefore an external or incomplete boundary rather than an evidenced implementation.

#### Core Product Screens
The post-entry experience centers on `lib/pages/home_page.dart`, likely the discovery/map landing surface. Community quality signals are represented by `lib/pages/rate_page.dart` for submitting ratings and `lib/pages/ranking_page.dart` for browsing ranked establishments. Google Maps Platform is the stated mapping/geolocation dependency, but no map-specific Dart integration files are visible, so map rendering and location retrieval are not grounded as implemented code.

#### UI Design System and Navigation
Presentation reuse is centralized under `lib/shared/app_colors.dart`, `lib/shared/app_text_styles.dart`, and `lib/shared/app_navbar.dart`. Pages consume these shared UI primitives rather than each defining visual tokens and bottom/navigation controls independently. Images and icons belong under `assets/images` and `assets/icons`, though individual asset files are not included in the tree.

#### Data and External-Service Boundary
The declared primary flow is: startup/session decision → onboarding or authentication → home discovery → profile, rating, and ranking interactions. Firebase is intended to supply authentication, database-backed collaborative accessibility data, and photo storage; Google Maps is intended to supply mapping/geolocation. The repository contains no visible models, repositories, Firebase configuration, API clients, or map adapters, so these service contracts are absent from the checked-in architecture.

#### Platform and Build Infrastructure
Flutter package resolution and declared dependencies are governed by `pubspec.yaml`. Android is built through Gradle (`android/app/build.gradle`), while desktop hosts use CMake (`linux/CMakeLists.txt`, `windows/CMakeLists.txt`) and Apple targets use Xcode projects (`ios/Runner.xcodeproj/project.pbxproj`, `macos/Runner.xcodeproj/project.pbxproj`). These hosts are platform launch/build boundaries; product logic resides primarily in `lib/`.

Main entry points: [`lib/pages/home_page.dart`](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/home_page.dart) (Home discovery), [`lib/main.dart`](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/main.dart) (Dart entry point), [`lib/controllers/splash.controller.dart`](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/controllers/splash.controller.dart) (Startup controller), [`lib/app.dart`](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/app.dart) (App composition)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_flutter["Flutter application"]
  node_pubspec["Flutter package manifest<br/>dependencies<br/>[pubspec.yaml]"]
  node_dart_main(("Dart entry point<br/>entrypoint<br/>[main.dart]"))
  node_app["App composition<br/>root UI<br/>[app.dart]"]
  node_splash_controller["Startup controller<br/>session gate"]
  node_splash_page["Splash screen<br/>startup view<br/>[splash_page.dart]"]
  node_onboarding["Onboarding<br/>first-use view"]
  node_sign_in["Sign in<br/>auth view<br/>[sign_in_page.dart]"]
  node_sign_up["Sign up<br/>auth view<br/>[sign_up_page.dart]"]
  node_home["Home discovery<br/>core view<br/>[home_page.dart]"]
  node_profile["User profile<br/>account view"]
  node_rate["Ratings<br/>community view<br/>[rate_page.dart]"]
  node_ranking["Rankings<br/>community view<br/>[ranking_page.dart]"]
  node_ui_shared["Shared UI primitives<br/>design system<br/>[app_navbar.dart]"]
end

subgraph group_platforms["Platform hosts"]
  node_android_host["Android host<br/>native launcher<br/>[MainActivity.kt]"]
  node_apple_hosts["iOS and macOS hosts<br/>native build hosts<br/>[AppDelegate.swift]"]
  node_desktop_hosts["Windows and Linux hosts<br/>native build hosts<br/>[main.cpp]"]
end

subgraph group_external["Intended services"]
  node_firebase[("Firebase<br/>external backend")]
  node_google_maps{{"Google Maps Platform<br/>external maps service"}}
end

node_pubspec -->|"resolves Flutter dependencies"| node_dart_main
node_android_host -->|"boots Flutter"| node_dart_main
node_apple_hosts -->|"boots Flutter"| node_dart_main
node_desktop_hosts -->|"boots Flutter"| node_dart_main
node_dart_main -->|"launches"| node_app
node_app -->|"initial route"| node_splash_page
node_splash_page -->|"delegates startup decision"| node_splash_controller
node_splash_controller -->|"first-use path"| node_onboarding
node_splash_controller -->|"unauthenticated path"| node_sign_in
node_splash_controller -->|"active-session path"| node_home
node_sign_in -->|"registration flow"| node_sign_up
node_sign_in -.->|"intended identity provider"| node_firebase
node_sign_up -.->|"intended account creation"| node_firebase
node_home -->|"account access"| node_profile
node_home -->|"community contribution"| node_rate
node_home -->|"browse rankings"| node_ranking
node_home -.->|"intended map and location"| node_google_maps
node_rate -.->|"intended ratings and photos"| node_firebase
node_ranking -.->|"intended ranking data"| node_firebase
node_profile -.->|"intended account data"| node_firebase
node_app -->|"uses shared theme and navigation"| node_ui_shared
node_home -->|"uses"| node_ui_shared
node_profile -->|"uses"| node_ui_shared

click node_pubspec "https://github.com/lucasclx/acesso_mapeado/blob/main/pubspec.yaml"
click node_dart_main "https://github.com/lucasclx/acesso_mapeado/blob/main/lib/main.dart"
click node_app "https://github.com/lucasclx/acesso_mapeado/blob/main/lib/app.dart"
click node_splash_controller "https://github.com/lucasclx/acesso_mapeado/blob/main/lib/controllers/splash.controller.dart"
click node_splash_page "https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/splash_page.dart"
click node_onboarding "https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/onboarding_page.dart"
click node_sign_in "https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/sign_in_page.dart"
click node_sign_up "https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/sign_up_page.dart"
click node_home "https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/home_page.dart"
click node_profile "https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/profile_user_page.dart"
click node_rate "https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/rate_page.dart"
click node_ranking "https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/ranking_page.dart"
click node_ui_shared "https://github.com/lucasclx/acesso_mapeado/blob/main/lib/shared/app_navbar.dart"
click node_android_host "https://github.com/lucasclx/acesso_mapeado/blob/main/android/app/src/main/kotlin/dev/mine/acesso/acesso_mapeado/MainActivity.kt"
click node_apple_hosts "https://github.com/lucasclx/acesso_mapeado/blob/main/ios/Runner/AppDelegate.swift"
click node_desktop_hosts "https://github.com/lucasclx/acesso_mapeado/blob/main/windows/runner/main.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_pubspec,node_dart_main,node_app,node_splash_controller,node_splash_page,node_onboarding,node_sign_in,node_sign_up,node_home,node_profile,node_rate,node_ranking,node_ui_shared toneBlue
class node_android_host,node_apple_hosts,node_desktop_hosts toneAmber
class node_firebase,node_google_maps toneMint
```

## Components

### Flutter application

Shared Dart product logic and UI.

- [Flutter package manifest](https://github.com/lucasclx/acesso_mapeado/blob/main/pubspec.yaml): dependencies · `pubspec.yaml`
- [Dart entry point](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/main.dart): entrypoint · `lib/main.dart`
- [App composition](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/app.dart): root UI · Owns app-level theme, routing, and initial screen selection. · `lib/app.dart`
- [Startup controller](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/controllers/splash.controller.dart): session gate · `lib/controllers/splash.controller.dart`
- [Splash screen](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/splash_page.dart): startup view · `lib/pages/splash_page.dart`
- [Onboarding](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/onboarding_page.dart): first-use view · `lib/pages/onboarding_page.dart`
- [Sign in](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/sign_in_page.dart): auth view · `lib/pages/sign_in_page.dart`
- [Sign up](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/sign_up_page.dart): auth view · `lib/pages/sign_up_page.dart`
- [Home discovery](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/home_page.dart): core view · Post-entry discovery and map landing surface. · `lib/pages/home_page.dart`
- [User profile](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/profile_user_page.dart): account view · `lib/pages/profile_user_page.dart`
- [Ratings](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/rate_page.dart): community view · Submits ratings, comments, and photos. · `lib/pages/rate_page.dart`
- [Rankings](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/pages/ranking_page.dart): community view · `lib/pages/ranking_page.dart`
- [Shared UI primitives](https://github.com/lucasclx/acesso_mapeado/blob/main/lib/shared/app_navbar.dart): design system · Colors, text styles, and app navigation are reused by pages. · `lib/shared/app_navbar.dart`

### Platform hosts

Native launch and build boundaries.

- [Android host](https://github.com/lucasclx/acesso_mapeado/blob/main/android/app/src/main/kotlin/dev/mine/acesso/acesso_mapeado/MainActivity.kt): native launcher · `android/app/src/main/kotlin/dev/mine/acesso/acesso_mapeado/MainActivity.kt`
- [iOS and macOS hosts](https://github.com/lucasclx/acesso_mapeado/blob/main/ios/Runner/AppDelegate.swift): native build hosts · `ios/Runner/AppDelegate.swift`
- [Windows and Linux hosts](https://github.com/lucasclx/acesso_mapeado/blob/main/windows/runner/main.cpp): native build hosts · `windows/runner/main.cpp`

### Intended services

Contracts are declared but not implemented in visible source.

- **Firebase**: external backend · Intended authentication, collaborative data, and photo storage boundary.
- **Google Maps Platform**: external maps service · Intended mapping and geolocation boundary.

## Connections

- Flutter package manifest → Dart entry point: resolves Flutter dependencies
- Android host → Dart entry point: boots Flutter
- iOS and macOS hosts → Dart entry point: boots Flutter
- Windows and Linux hosts → Dart entry point: boots Flutter
- Dart entry point → App composition: launches
- App composition → Splash screen: initial route
- Splash screen → Startup controller: delegates startup decision
- Startup controller → Onboarding: first-use path
- Startup controller → Sign in: unauthenticated path
- Startup controller → Home discovery: active-session path
- Sign in → Sign up: registration flow
- Sign in → Firebase: intended identity provider
- Sign up → Firebase: intended account creation
- Home discovery → User profile: account access
- Home discovery → Ratings: community contribution
- Home discovery → Rankings: browse rankings
- Home discovery → Google Maps Platform: intended map and location
- Ratings → Firebase: intended ratings and photos
- Rankings → Firebase: intended ranking data
- User profile → Firebase: intended account data
- App composition → Shared UI primitives: uses shared theme and navigation
- Home discovery → Shared UI primitives: uses
- User profile → Shared UI primitives: uses
