# fatfatma/gym_app architecture

> Architecture diagram of the GitHub repository fatfatma/gym_app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fatfatma/gym_app
- Repository: https://github.com/fatfatma/gym_app

## Overview

This appears to be a Flutter gym-membership app, with member-facing login, registration, profile, and membership screens plus admin screens for members and packages. The tree also identifies member and Supabase services and a member model. The README is only Flutter boilerplate, and the Dart implementation was not sampled, so screen routing, service calls, and database relationships cannot be verified; the graph therefore shows the evidenced product areas without speculative flows.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App entry"]
  node_entry["Flutter entry<br/>[main.dart]"]
end

subgraph group_member["Member experience"]
  node_login["Login<br/>[login_page.dart]"]
  node_register["Register<br/>[register_page.dart]"]
  node_home["Home<br/>[home_page.dart]"]
  node_home2["Home variant<br/>[home_page2.dart]"]
  node_membership["Membership"]
  node_profile["Profile<br/>[profile_page.dart]"]
  node_membermodel["Member model<br/>[member.dart]"]
  node_memberservice["Member service"]
  node_supabaseservice["Supabase service"]
end

subgraph group_admin["Administration"]
  node_admin["Admin home<br/>[admin_page.dart]"]
  node_adminv2["Admin variant<br/>[admin_page_v2.dart]"]
  node_adminmembers["Manage members"]
  node_adminpackages["Manage packages"]
end

node_user(("App user"))
node_supabase[("Supabase")]

click node_entry "https://github.com/fatfatma/gym_app/blob/main/lib/main.dart"
click node_login "https://github.com/fatfatma/gym_app/blob/main/lib/pages/login_page.dart"
click node_register "https://github.com/fatfatma/gym_app/blob/main/lib/pages/register_page.dart"
click node_home "https://github.com/fatfatma/gym_app/blob/main/lib/pages/home_page.dart"
click node_home2 "https://github.com/fatfatma/gym_app/blob/main/lib/pages/home_page2.dart"
click node_membership "https://github.com/fatfatma/gym_app/blob/main/lib/pages/membership_page.dart"
click node_profile "https://github.com/fatfatma/gym_app/blob/main/lib/pages/profile_page.dart"
click node_membermodel "https://github.com/fatfatma/gym_app/blob/main/lib/models/member.dart"
click node_memberservice "https://github.com/fatfatma/gym_app/blob/main/lib/services/member_service.dart"
click node_supabaseservice "https://github.com/fatfatma/gym_app/blob/main/lib/services/supabase_service.dart"
click node_admin "https://github.com/fatfatma/gym_app/blob/main/lib/pages/admin_page.dart"
click node_adminv2 "https://github.com/fatfatma/gym_app/blob/main/lib/pages/admin_page_v2.dart"
click node_adminmembers "https://github.com/fatfatma/gym_app/blob/main/lib/pages/admin_members_page.dart"
click node_adminpackages "https://github.com/fatfatma/gym_app/blob/main/lib/pages/admin_packages_page.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_entry,node_user toneBlue
class node_login,node_register,node_home,node_home2,node_membership,node_profile,node_membermodel,node_memberservice,node_supabaseservice,node_supabase toneAmber
class node_admin,node_adminv2,node_adminmembers,node_adminpackages toneMint
```

## Components

### App entry

- [Flutter entry](https://github.com/fatfatma/gym_app/blob/main/lib/main.dart): `lib/main.dart`

### Member experience

- [Login](https://github.com/fatfatma/gym_app/blob/main/lib/pages/login_page.dart): `lib/pages/login_page.dart`
- [Register](https://github.com/fatfatma/gym_app/blob/main/lib/pages/register_page.dart): `lib/pages/register_page.dart`
- [Home](https://github.com/fatfatma/gym_app/blob/main/lib/pages/home_page.dart): `lib/pages/home_page.dart`
- [Home variant](https://github.com/fatfatma/gym_app/blob/main/lib/pages/home_page2.dart): `lib/pages/home_page2.dart`
- [Membership](https://github.com/fatfatma/gym_app/blob/main/lib/pages/membership_page.dart): `lib/pages/membership_page.dart`
- [Profile](https://github.com/fatfatma/gym_app/blob/main/lib/pages/profile_page.dart): `lib/pages/profile_page.dart`
- [Member model](https://github.com/fatfatma/gym_app/blob/main/lib/models/member.dart): `lib/models/member.dart`
- [Member service](https://github.com/fatfatma/gym_app/blob/main/lib/services/member_service.dart): `lib/services/member_service.dart`
- [Supabase service](https://github.com/fatfatma/gym_app/blob/main/lib/services/supabase_service.dart): `lib/services/supabase_service.dart`

### Administration

- [Admin home](https://github.com/fatfatma/gym_app/blob/main/lib/pages/admin_page.dart): `lib/pages/admin_page.dart`
- [Admin variant](https://github.com/fatfatma/gym_app/blob/main/lib/pages/admin_page_v2.dart): `lib/pages/admin_page_v2.dart`
- [Manage members](https://github.com/fatfatma/gym_app/blob/main/lib/pages/admin_members_page.dart): `lib/pages/admin_members_page.dart`
- [Manage packages](https://github.com/fatfatma/gym_app/blob/main/lib/pages/admin_packages_page.dart): `lib/pages/admin_packages_page.dart`

### Other components

- **App user**
- **Supabase**
