How rmanguinho/advanced-flutter works
This is a Flutter mobile app organized around displaying a group’s next event and its players, with a small Express backend exposing sample event data. The tree indicates a presentation-to-domain-to-infrastructure design, including API loading and cache fallback; source excerpts do not show the Dart runtime wiring, so those relationships are shown as unverified. The backend excerpt confirms its endpoint and response shape, but not a connection from the app.
Main entry points: next_event_presenter.dart Event Presenter · next_event_page.dart Next Event Page · viewmodels Event View Models · load_next_event_from_api_with_cache_fallback_repo.dart API Cache Fallback
Components 17
Presentation
- Next Event Page
lib/ui/pages/next_event_page.dart - Player Components
lib/ui/components - Event Presenter
lib/presentation/presenters/next_event_presenter.dart - Reactive Presenter
lib/presentation/rx/next_event_rx_presenter.dart - Event View Models
lib/presentation/viewmodels
Event Domain
- Next Event
lib/domain/entities/next_event.dart - Event Player
lib/domain/entities/next_event_player.dart - Domain Errors
lib/domain/entities/errors.dart
Data Infrastructure
- API Cache Fallback
lib/infra/respositories/load_next_event_from_api_with_cache_fallback_repo.dart - API Event Repository
lib/infra/api/repositories/load_next_event_api_repo.dart - Authorized HTTP Client
lib/infra/api/clients/authorized_http_get_client.dart - HTTP Adapter
lib/infra/api/adapters/http_adapter.dart - Event Mappers
lib/infra/mappers/next_event_mapper.dart - Cache Event Repository
lib/infra/cache/repositories/load_next_event_cache_repo.dart - Cache Adapter
lib/infra/cache/adapters/cache_manager_adapter.dart
Backend Service
- Express Event API
backend/index.js
Other components
- App User
Connections 15
- App User → Next Event Page: views
- Next Event Page → Event Presenter: requests data
- Next Event Page → Player Components: renders
- Event Presenter → Reactive Presenter: uses
- Event Presenter → Event View Models: builds
- Event View Models → Next Event: represents
- Event View Models → Event Player: represents
- Event Presenter → API Cache Fallback: loads event
- API Cache Fallback → API Event Repository: tries API
- API Cache Fallback → Cache Event Repository: falls back
- API Event Repository → Authorized HTTP Client: fetches
- Authorized HTTP Client → HTTP Adapter: uses
- API Event Repository → Event Mappers: maps response
- Cache Event Repository → Cache Adapter: reads cache
- Authorized HTTP Client → Express Event API: requests event