How greenbird122/repair-ai works
RepairAI is an Android maternal-health companion. Its implemented user-to-result path covers account access: the app enters through Flutter, routes users through guarded screens, and provides sign-in, registration, and password-change UI backed by an auth/network layer. Location lookups are also represented in the project layout. Pregnancy progress, visits, and CHP follow-up are product goals, but the README says most pages remain planned; unsampled implementation details and calls are therefore not inferred.
Main entry points: routes.dart Routes and guard · api_client.dart API client · main.dart Flutter app entry · session_controller.dart Session lifecycle
Components 18
App and navigation
- Flutter app entry
lib/main.dart - Routes and guard
lib/core/routes.dart - Splash gate
lib/pages/splash_gate.dart - Login screen
lib/pages/login_page.dart - Registration screen
lib/pages/register_page.dart - Password screen
lib/pages/change_password_page.dart - Home screen
lib/pages/home_page.dart
Account and session
- Session lifecycle
lib/features/auth/logic/session_controller.dart - Auth API
lib/features/auth/data/auth_api.dart - Secure token store
lib/features/auth/data/secure_token_storage.dart
Network services
- API client
lib/features/network/data/api_client.dart - JWT refresh
lib/features/network/data/auth_authenticator.dart - Health check
lib/features/network/data/health_check.dart - Health state
lib/features/network/logic/health_controller.dart
Location lookup
- Location lookups
lib/features/locations/data/location_api.dart - Location providers
lib/features/locations/logic/location_providers.dart
Other components
- Android user
- RepairAI backend
Connections 14
- Android user → Flutter app entry: uses
README.md - Flutter app entry → Routes and guard: registers routes
README.md - Routes and guard → Splash gate: routes to
README.md - Routes and guard → Login screen: routes to
README.md - Routes and guard → Registration screen: routes to
README.md - Routes and guard → Password screen: routes to
README.md - Routes and guard → Home screen: routes to
README.md - Routes and guard → Session lifecycle: guards with
README.md - Auth API → API client: uses network core
- API client → RepairAI backend: sends API requests
README.md - API client → JWT refresh: supports silent refresh
README.md - Session lifecycle → Secure token store: uses secure storage
- Health state → Health check: checks backend
- Location providers → Location lookups: provides lookup state