# khanblair/diabetes-patient-care-app--using-flutter architecture

> Architecture diagram of the GitHub repository khanblair/diabetes-patient-care-app--using-flutter, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/khanblair/diabetes-patient-care-app--using-flutter
- Repository: https://github.com/khanblair/diabetes-patient-care-app--using-flutter

## Overview

This is a Flutter diabetes-care app for patients. Its user-facing scope spans authentication and a health dashboard; glucose logging, trends and reports; diet, food, activity and medication tracking; appointments, reminders and notifications; and education, forums, messaging and profile management. The tree supports locating these features in Flutter screens, models and services, while the README documents their product roles. Dart implementation excerpts were not provided, so edges below represent documented user-to-capability relationships, not verified internal call paths; several advertised capabilities may be broader than the sampled code.

Main entry points: [`lib/main.dart`](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/main.dart) (Diabetes app), [`lib/screens/auth`](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/tree/master/lib/screens/auth) (Authentication), [`lib/screens/profile/profile_screen.dart`](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/profile/profile_screen.dart) (Patient profile), [`lib/screens/home_screen.dart`](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/home_screen.dart) (Health dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Patient experience"]
  node_app["Diabetes app<br/>[main.dart]"]
  node_auth["Authentication"]
  node_profile["Patient profile"]
  node_dashboard["Health dashboard<br/>[home_screen.dart]"]
end

subgraph group_monitoring["Health monitoring"]
  node_reading["Glucose readings"]
  node_trends["Reading trends<br/>[trends_screen.dart]"]
  node_reports["Health reports"]
  node_chart["Glucose chart<br/>[glucose_chart.dart]"]
end

subgraph group_lifestyle["Lifestyle management"]
  node_food["Food logging"]
  node_diet["Diet planning"]
  node_activity["Activity logging"]
  node_medications["Medication tracking"]
end

subgraph group_care["Care and community"]
  node_appointments["Appointments"]
  node_reminders["Reminders"]
  node_notifications["Notifications"]
  node_education["Health education"]
  node_forum["Patient forum<br/>[forum_screen.dart]"]
  node_messages["Provider messaging"]
end

subgraph group_support["App services"]
  node_authservice["Auth service<br/>[auth_service.dart]"]
  node_backend["Backend service"]
  node_notificationservice["Notification service"]
end

node_patient(("Patient"))

node_patient -->|"uses"| node_app
node_patient -->|"signs in"| node_auth
node_patient -->|"manages profile"| node_profile
node_patient -->|"views health"| node_dashboard
node_patient -->|"tracks glucose"| node_reading
node_patient -->|"reviews trends"| node_trends
node_patient -->|"reviews reports"| node_reports
node_patient -->|"views charts"| node_chart
node_patient -->|"logs food"| node_food
node_patient -->|"plans diet"| node_diet
node_patient -->|"tracks activity"| node_activity
node_patient -->|"tracks medication"| node_medications
node_patient -->|"manages visits"| node_appointments
node_patient -->|"sets reminders"| node_reminders
node_patient -->|"receives alerts"| node_notifications
node_patient -->|"reads guidance"| node_education
node_patient -->|"joins community"| node_forum
node_patient -->|"contacts providers"| node_messages

click node_app "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/main.dart"
click node_auth "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/tree/master/lib/screens/auth"
click node_profile "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/profile/profile_screen.dart"
click node_dashboard "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/home_screen.dart"
click node_reading "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/tree/master/lib/screens/readings"
click node_trends "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/readings/trends_screen.dart"
click node_reports "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/reports/reports_screen.dart"
click node_chart "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/widgets/glucose_chart.dart"
click node_food "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/food/food_logging_screen.dart"
click node_diet "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/medications/diet_plan_screen.dart"
click node_activity "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/activity_logging_screen.dart"
click node_medications "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/medications/medications_screen.dart"
click node_appointments "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/tree/master/lib/screens/appointments"
click node_reminders "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/medications/reminders_screen.dart"
click node_notifications "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/notifications/notifications_screen.dart"
click node_education "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/tree/master/lib/screens/health"
click node_forum "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/forum_screen.dart"
click node_messages "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/tree/master/lib/screens/messages"
click node_authservice "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/services/auth_service.dart"
click node_backend "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/services/supabase_service.dart"
click node_notificationservice "https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/services/notification_service.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_app,node_auth,node_profile,node_dashboard toneBlue
class node_reading,node_trends,node_reports,node_chart toneAmber
class node_food,node_diet,node_activity,node_medications toneMint
class node_appointments,node_reminders,node_notifications,node_education,node_forum,node_messages toneRose
class node_authservice,node_backend,node_notificationservice,node_patient toneIndigo
```

## Components

### Patient experience

- [Diabetes app](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/main.dart): `lib/main.dart`
- [Authentication](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/tree/master/lib/screens/auth): `lib/screens/auth`
- [Patient profile](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/profile/profile_screen.dart): `lib/screens/profile/profile_screen.dart`
- [Health dashboard](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/home_screen.dart): `lib/screens/home_screen.dart`

### Health monitoring

- [Glucose readings](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/tree/master/lib/screens/readings): `lib/screens/readings`
- [Reading trends](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/readings/trends_screen.dart): `lib/screens/readings/trends_screen.dart`
- [Health reports](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/reports/reports_screen.dart): `lib/screens/reports/reports_screen.dart`
- [Glucose chart](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/widgets/glucose_chart.dart): `lib/widgets/glucose_chart.dart`

### Lifestyle management

- [Food logging](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/food/food_logging_screen.dart): `lib/screens/food/food_logging_screen.dart`
- [Diet planning](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/medications/diet_plan_screen.dart): `lib/screens/medications/diet_plan_screen.dart`
- [Activity logging](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/activity_logging_screen.dart): `lib/screens/activity_logging_screen.dart`
- [Medication tracking](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/medications/medications_screen.dart): `lib/screens/medications/medications_screen.dart`

### Care and community

- [Appointments](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/tree/master/lib/screens/appointments): `lib/screens/appointments`
- [Reminders](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/medications/reminders_screen.dart): `lib/screens/medications/reminders_screen.dart`
- [Notifications](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/notifications/notifications_screen.dart): `lib/screens/notifications/notifications_screen.dart`
- [Health education](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/tree/master/lib/screens/health): `lib/screens/health`
- [Patient forum](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/screens/forum_screen.dart): `lib/screens/forum_screen.dart`
- [Provider messaging](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/tree/master/lib/screens/messages): `lib/screens/messages`

### App services

- [Auth service](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/services/auth_service.dart): `lib/services/auth_service.dart`
- [Backend service](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/services/supabase_service.dart): `lib/services/supabase_service.dart`
- [Notification service](https://github.com/khanblair/diabetes-patient-care-app--using-flutter/blob/master/lib/services/notification_service.dart): `lib/services/notification_service.dart`

### Other components

- **Patient**

## Connections

- Patient → Diabetes app: uses (evidence: `README.md`)
- Patient → Authentication: signs in (evidence: `README.md`)
- Patient → Patient profile: manages profile (evidence: `README.md`)
- Patient → Health dashboard: views health (evidence: `README.md`)
- Patient → Glucose readings: tracks glucose (evidence: `README.md`)
- Patient → Reading trends: reviews trends (evidence: `README.md`)
- Patient → Health reports: reviews reports (evidence: `README.md`)
- Patient → Glucose chart: views charts (evidence: `README.md`)
- Patient → Food logging: logs food (evidence: `README.md`)
- Patient → Diet planning: plans diet (evidence: `README.md`)
- Patient → Activity logging: tracks activity (evidence: `README.md`)
- Patient → Medication tracking: tracks medication (evidence: `README.md`)
- Patient → Appointments: manages visits (evidence: `README.md`)
- Patient → Reminders: sets reminders (evidence: `README.md`)
- Patient → Notifications: receives alerts (evidence: `README.md`)
- Patient → Health education: reads guidance (evidence: `README.md`)
- Patient → Patient forum: joins community (evidence: `README.md`)
- Patient → Provider messaging: contacts providers (evidence: `README.md`)
