# yassin522/schoolmate-dashboard architecture

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

- Interactive diagram: https://gitdiagram.com/yassin522/schoolmate-dashboard
- Repository: https://github.com/yassin522/schoolmate-dashboard

## Overview

SchoolMate-Dashboard is a Flutter school-administration dashboard. The tree suggests an administrator workflow through login and a main screen into school, student, teacher, class, subject, schedule, grade, announcement, and report areas. Feature-specific controllers, screens, and API modules indicate distinct management capabilities, with shared domain models. The README only identifies the product and shows a mockup; Dart sources were not sampled, so feature connections and backend behavior are not verified. The Windows nodes represent its native Flutter host, not product build tooling.

Main entry points: [`lib/view/screens/main-screen/main-screen.dart`](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/main-screen/main-screen.dart) (Main dashboard), [`windows/runner/flutter_window.cpp`](https://github.com/yassin522/schoolmate-dashboard/blob/main/windows/runner/flutter_window.cpp) (Flutter window), [`lib/main.dart`](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/main.dart) (App entry), [`lib/view/screens/login/login_screen.dart`](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/login/login_screen.dart) (Login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App navigation"]
  node_entry["App entry<br/>[main.dart]"]
  node_login["Login<br/>[login_screen.dart]"]
  node_main["Main dashboard<br/>[main-screen.dart]"]
end

subgraph group_school["School operations"]
  node_school["School overview"]
  node_daily["Daily check"]
  node_schedules["Schedules"]
  node_schedule_api["Schedule API<br/>[schedulesapi.dart]"]
end

subgraph group_records["People and academics"]
  node_students["Students"]
  node_student_api["Student API<br/>[studentsApi.dart]"]
  node_teachers["Teachers"]
  node_teacher_api["Teacher API<br/>[teachers_api.dart]"]
  node_classes["Classes"]
  node_class_api["Class API<br/>[classes_api.dart]"]
  node_subjects["Subjects"]
  node_subject_api["Subject API<br/>[subject_api.dart]"]
  node_grades["Grades<br/>[grades-screen.dart]"]
  node_grade_api["Grade API<br/>[grades_api.dart]"]
  node_models["Domain models"]
end

subgraph group_communications["Updates and reporting"]
  node_announcements["Announcements"]
  node_announcement_api["Announcement API"]
  node_reports["Reports"]
  node_report_api["Report API<br/>[reports_api.dart]"]
end

subgraph group_host["Windows runtime"]
  node_win_main["Windows entry<br/>[main.cpp]"]
  node_flutter_window["Flutter window<br/>[flutter_window.cpp]"]
  node_window_base["Window handling<br/>[win32_window.cpp]"]
  node_plugins["Plugin registration"]
  node_flutter_header["Flutter window interface<br/>[flutter_window.h]"]
  node_window_header["Window interface<br/>[win32_window.h]"]
end

node_admin(("Administrator"))

node_admin -.->|"opens"| node_entry
node_entry -.->|"starts"| node_login
node_login -.->|"enters dashboard"| node_main
node_main -.->|"navigates"| node_school
node_main -.->|"navigates"| node_daily
node_main -.->|"navigates"| node_schedules
node_main -.->|"navigates"| node_students
node_main -.->|"navigates"| node_teachers
node_main -.->|"navigates"| node_classes
node_main -.->|"navigates"| node_subjects
node_main -.->|"navigates"| node_grades
node_main -.->|"navigates"| node_announcements
node_main -.->|"navigates"| node_reports
node_schedules -.->|"uses"| node_schedule_api
node_students -.->|"uses"| node_student_api
node_teachers -.->|"uses"| node_teacher_api
node_classes -.->|"uses"| node_class_api
node_subjects -.->|"uses"| node_subject_api
node_grades -.->|"uses"| node_grade_api
node_announcements -.->|"uses"| node_announcement_api
node_reports -.->|"uses"| node_report_api
node_win_main -->|"creates"| node_flutter_window
node_flutter_window -->|"inherits"| node_window_base
node_flutter_window -->|"registers"| node_plugins
node_flutter_header -->|"includes"| node_window_header

click node_entry "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/main.dart"
click node_login "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/login/login_screen.dart"
click node_main "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/main-screen/main-screen.dart"
click node_school "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/your-school/your-school-screen.dart"
click node_daily "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/your-school/daily-check-screen.dart"
click node_schedules "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/schedules/schedules-screen.dart"
click node_schedule_api "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/schedules/schedulesapi.dart"
click node_students "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/students/students-screen.dart"
click node_student_api "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/students/studentsApi.dart"
click node_teachers "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/teachers/teachers-screen.dart"
click node_teacher_api "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/teachers/teachers_api.dart"
click node_classes "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/classes/classes-screen.dart"
click node_class_api "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/classes/classes_api.dart"
click node_subjects "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/subjects/subjects-screen.dart"
click node_subject_api "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/subjects/subject_api.dart"
click node_grades "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/grades/grades-screen.dart"
click node_grade_api "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/grades/grades_api.dart"
click node_announcements "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/announcements/announcememts-screen.dart"
click node_announcement_api "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/announcements/announcememtsapi.dart"
click node_reports "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/reports/reports-screen.dart"
click node_report_api "https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/reports/reports_api.dart"
click node_models "https://github.com/yassin522/schoolmate-dashboard/tree/main/lib/models"
click node_win_main "https://github.com/yassin522/schoolmate-dashboard/blob/main/windows/runner/main.cpp"
click node_flutter_window "https://github.com/yassin522/schoolmate-dashboard/blob/main/windows/runner/flutter_window.cpp"
click node_window_base "https://github.com/yassin522/schoolmate-dashboard/blob/main/windows/runner/win32_window.cpp"
click node_plugins "https://github.com/yassin522/schoolmate-dashboard/blob/main/windows/flutter/generated_plugin_registrant.cc"
click node_flutter_header "https://github.com/yassin522/schoolmate-dashboard/blob/main/windows/runner/flutter_window.h"
click node_window_header "https://github.com/yassin522/schoolmate-dashboard/blob/main/windows/runner/win32_window.h"

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_login,node_main toneBlue
class node_school,node_daily,node_schedules,node_schedule_api toneAmber
class node_students,node_student_api,node_teachers,node_teacher_api,node_classes,node_class_api,node_subjects,node_subject_api,node_grades,node_grade_api,node_models toneMint
class node_announcements,node_announcement_api,node_reports,node_report_api toneRose
class node_win_main,node_flutter_window,node_window_base,node_plugins,node_flutter_header,node_window_header,node_admin toneIndigo
```

## Components

### App navigation

- [App entry](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/main.dart): `lib/main.dart`
- [Login](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/login/login_screen.dart): `lib/view/screens/login/login_screen.dart`
- [Main dashboard](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/main-screen/main-screen.dart): `lib/view/screens/main-screen/main-screen.dart`

### School operations

- [School overview](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/your-school/your-school-screen.dart): `lib/view/screens/your-school/your-school-screen.dart`
- [Daily check](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/your-school/daily-check-screen.dart): `lib/view/screens/your-school/daily-check-screen.dart`
- [Schedules](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/schedules/schedules-screen.dart): `lib/view/screens/schedules/schedules-screen.dart`
- [Schedule API](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/schedules/schedulesapi.dart): `lib/view/screens/schedules/schedulesapi.dart`

### People and academics

- [Students](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/students/students-screen.dart): `lib/view/screens/students/students-screen.dart`
- [Student API](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/students/studentsApi.dart): `lib/view/screens/students/studentsApi.dart`
- [Teachers](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/teachers/teachers-screen.dart): `lib/view/screens/teachers/teachers-screen.dart`
- [Teacher API](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/teachers/teachers_api.dart): `lib/view/screens/teachers/teachers_api.dart`
- [Classes](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/classes/classes-screen.dart): `lib/view/screens/classes/classes-screen.dart`
- [Class API](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/classes/classes_api.dart): `lib/view/screens/classes/classes_api.dart`
- [Subjects](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/subjects/subjects-screen.dart): `lib/view/screens/subjects/subjects-screen.dart`
- [Subject API](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/subjects/subject_api.dart): `lib/view/screens/subjects/subject_api.dart`
- [Grades](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/grades/grades-screen.dart): `lib/view/screens/grades/grades-screen.dart`
- [Grade API](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/grades/grades_api.dart): `lib/view/screens/grades/grades_api.dart`
- [Domain models](https://github.com/yassin522/schoolmate-dashboard/tree/main/lib/models): `lib/models`

### Updates and reporting

- [Announcements](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/announcements/announcememts-screen.dart): `lib/view/screens/announcements/announcememts-screen.dart`
- [Announcement API](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/announcements/announcememtsapi.dart): `lib/view/screens/announcements/announcememtsapi.dart`
- [Reports](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/reports/reports-screen.dart): `lib/view/screens/reports/reports-screen.dart`
- [Report API](https://github.com/yassin522/schoolmate-dashboard/blob/main/lib/view/screens/reports/reports_api.dart): `lib/view/screens/reports/reports_api.dart`

### Windows runtime

- [Windows entry](https://github.com/yassin522/schoolmate-dashboard/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/yassin522/schoolmate-dashboard/blob/main/windows/runner/flutter_window.cpp): `windows/runner/flutter_window.cpp`
- [Window handling](https://github.com/yassin522/schoolmate-dashboard/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Plugin registration](https://github.com/yassin522/schoolmate-dashboard/blob/main/windows/flutter/generated_plugin_registrant.cc): `windows/flutter/generated_plugin_registrant.cc`
- [Flutter window interface](https://github.com/yassin522/schoolmate-dashboard/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Window interface](https://github.com/yassin522/schoolmate-dashboard/blob/main/windows/runner/win32_window.h): `windows/runner/win32_window.h`

### Other components

- **Administrator**

## Connections

- Administrator → App entry: opens
- App entry → Login: starts
- Login → Main dashboard: enters dashboard
- Main dashboard → School overview: navigates
- Main dashboard → Daily check: navigates
- Main dashboard → Schedules: navigates
- Main dashboard → Students: navigates
- Main dashboard → Teachers: navigates
- Main dashboard → Classes: navigates
- Main dashboard → Subjects: navigates
- Main dashboard → Grades: navigates
- Main dashboard → Announcements: navigates
- Main dashboard → Reports: navigates
- Schedules → Schedule API: uses
- Students → Student API: uses
- Teachers → Teacher API: uses
- Classes → Class API: uses
- Subjects → Subject API: uses
- Grades → Grade API: uses
- Announcements → Announcement API: uses
- Reports → Report API: uses
- Windows entry → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Flutter window → Window handling: inherits
- Flutter window → Plugin registration: registers (evidence: `windows/runner/flutter_window.cpp`)
- Flutter window interface → Window interface: includes (evidence: `windows/runner/flutter_window.h`)
