# upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter architecture

> Architecture diagram of the GitHub repository upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter
- Repository: https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter

## Overview

Guardian+ is a Flutter care app in which Care Circle members monitor and respond to alerts for a person in their care. Its principal workflow is alert review and response; the repository also has distinct health, mobility, routine/wellness, account, and subscription contexts. The README describes a presentation/application/domain/infrastructure pattern and a shared API client. Source excerpts do not include Dart implementation, so feature-level links are shown as unverified rather than asserted calls.

Main entry points: [`lib/core/network/api_client.dart`](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/blob/develop/lib/core/network/api_client.dart) (Shared API client), [`lib/features/emergency_alerting/presentation`](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/emergency_alerting/presentation) (Alert screens), [`lib/features/emergency_alerting/application`](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/emergency_alerting/application) (Alert response actions), [`lib/features/emergency_alerting/infrastructure`](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/emergency_alerting/infrastructure) (Alert API and repositories)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_alerts["Emergency alerts"]
  node_alert_screens["Alert screens"]
  node_alert_actions["Alert response actions"]
  node_alert_remote["Alert API and repositories"]
end

subgraph group_care["Care monitoring"]
  node_health["Health monitoring"]
  node_mobility["Mobility and geofencing"]
  node_routines["Care routines and wellness"]
end

subgraph group_account["Account and access"]
  node_profile["Care profile"]
  node_auth["Authentication"]
  node_subscriptions["Subscriptions"]
end

subgraph group_shared["Shared app services"]
  node_api_client["Shared API client<br/>[api_client.dart]"]
  node_care_context["Care context<br/>[care_context.dart]"]
end

node_care_circle(("Care Circle member"))
node_api_service{{"Deployed API"}}

node_care_circle -.->|"reviews alerts"| node_alert_screens
node_alert_screens -.->|"requests response"| node_alert_actions
node_alert_actions -.->|"executes operations"| node_alert_remote
node_alert_remote -.->|"uses client"| node_api_client
node_api_client -.->|"sends requests"| node_api_service
node_health -.->|"uses client"| node_api_client
node_mobility -.->|"uses client"| node_api_client
node_routines -.->|"uses client"| node_api_client
node_auth -.->|"uses client"| node_api_client
node_profile -.->|"uses client"| node_api_client
node_subscriptions -.->|"uses client"| node_api_client

click node_alert_screens "https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/emergency_alerting/presentation"
click node_alert_actions "https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/emergency_alerting/application"
click node_alert_remote "https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/emergency_alerting/infrastructure"
click node_health "https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/health_monitoring"
click node_mobility "https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/mobility_geofencing"
click node_routines "https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/care_routines_wellness"
click node_profile "https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/profile"
click node_auth "https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/auth"
click node_subscriptions "https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/subscriptions"
click node_api_client "https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/blob/develop/lib/core/network/api_client.dart"
click node_care_context "https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/blob/develop/lib/core/session/care_context.dart"

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_alert_screens,node_alert_actions,node_alert_remote toneBlue
class node_health,node_mobility,node_routines toneAmber
class node_profile,node_auth,node_subscriptions,node_api_service toneMint
class node_api_client,node_care_context toneRose
class node_care_circle toneIndigo
```

## Components

### Emergency alerts

- [Alert screens](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/emergency_alerting/presentation): `lib/features/emergency_alerting/presentation`
- [Alert response actions](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/emergency_alerting/application): `lib/features/emergency_alerting/application`
- [Alert API and repositories](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/emergency_alerting/infrastructure): `lib/features/emergency_alerting/infrastructure`

### Care monitoring

- [Health monitoring](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/health_monitoring): `lib/features/health_monitoring`
- [Mobility and geofencing](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/mobility_geofencing): `lib/features/mobility_geofencing`
- [Care routines and wellness](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/care_routines_wellness): `lib/features/care_routines_wellness`

### Account and access

- [Care profile](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/profile): `lib/features/profile`
- [Authentication](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/auth): `lib/features/auth`
- [Subscriptions](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/tree/develop/lib/features/subscriptions): `lib/features/subscriptions`

### Shared app services

- [Shared API client](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/blob/develop/lib/core/network/api_client.dart): `lib/core/network/api_client.dart`
- [Care context](https://github.com/upc-pre-202620-1asi0238-13980-healthify/guardian-plus-mobile-app-flutter/blob/develop/lib/core/session/care_context.dart): `lib/core/session/care_context.dart`

### Other components

- **Care Circle member**
- **Deployed API**

## Connections

- Care Circle member → Alert screens: reviews alerts (evidence: `README.md`)
- Alert screens → Alert response actions: requests response
- Alert response actions → Alert API and repositories: executes operations
- Alert API and repositories → Shared API client: uses client (evidence: `README.md`)
- Shared API client → Deployed API: sends requests (evidence: `README.md`)
- Health monitoring → Shared API client: uses client (evidence: `README.md`)
- Mobility and geofencing → Shared API client: uses client (evidence: `README.md`)
- Care routines and wellness → Shared API client: uses client (evidence: `README.md`)
- Authentication → Shared API client: uses client (evidence: `README.md`)
- Care profile → Shared API client: uses client (evidence: `README.md`)
- Subscriptions → Shared API client: uses client (evidence: `README.md`)
