How lucasclx/acesso_mapeado works
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: home_page.dart Home discovery · main.dart Dart entry point · splash.controller.dart Startup controller · app.dart App composition
Components 18
Flutter application
Shared Dart product logic and UI.
- Flutter package manifest
pubspec.yaml - Dart entry point
lib/main.dart - App composition · Owns app-level theme, routing, and initial screen selection.
lib/app.dart - Startup controller
lib/controllers/splash.controller.dart - Splash screen
lib/pages/splash_page.dart - Onboarding
lib/pages/onboarding_page.dart - Sign in
lib/pages/sign_in_page.dart - Sign up
lib/pages/sign_up_page.dart - Home discovery · Post-entry discovery and map landing surface.
lib/pages/home_page.dart - User profile
lib/pages/profile_user_page.dart - Ratings · Submits ratings, comments, and photos.
lib/pages/rate_page.dart - Rankings
lib/pages/ranking_page.dart - Shared UI primitives · Colors, text styles, and app navigation are reused by pages.
lib/shared/app_navbar.dart
Platform hosts
Native launch and build boundaries.
- Android host
android/app/src/main/kotlin/dev/mine/acesso/acesso_mapeado/MainActivity.kt - iOS and macOS hosts
ios/Runner/AppDelegate.swift - Windows and Linux hosts
windows/runner/main.cpp
Intended services
Contracts are declared but not implemented in visible source.
- Firebase · Intended authentication, collaborative data, and photo storage boundary.
- Google Maps Platform · Intended mapping and geolocation boundary.
Connections 23
- 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