# moizrao00/e-foas architecture

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

- Interactive diagram: https://gitdiagram.com/moizrao00/e-foas
- Repository: https://github.com/moizrao00/e-foas

## Overview

This is a Flutter diary/despatch management application, but the README provides no product-specific workflow description and the Dart sources were not sampled. The tree indicates user authentication, administrative auditing, files and letters, meetings and tasks, notifications, and PDF generation. The graph preserves these capabilities while marking inferred Dart-layer relationships as unverified; the Windows runner relationships are supported by the excerpts.

Main entry points: [`lib/screens/shell/app_shell.dart`](https://github.com/moizrao00/e-foas/blob/main/lib/screens/shell/app_shell.dart) (App Shell), [`lib/screens/auth/login_screen.dart`](https://github.com/moizrao00/e-foas/blob/main/lib/screens/auth/login_screen.dart) (Sign-in Screens), [`lib/screens/files/file_screen.dart`](https://github.com/moizrao00/e-foas/blob/main/lib/screens/files/file_screen.dart) (File Dispatch), [`lib/screens/letters/letter_screen.dart`](https://github.com/moizrao00/e-foas/blob/main/lib/screens/letters/letter_screen.dart) (Letters)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_main["App Startup<br/>[main.dart]"]
  node_shell["App Shell<br/>[app_shell.dart]"]
  node_dashboard["Dashboard"]
  node_settings["Settings"]
end

subgraph group_identity["Identity and Administration"]
  node_authui["Sign-in Screens<br/>[login_screen.dart]"]
  node_auth["Authentication<br/>[auth_services.dart]"]
  node_admin["User Administration<br/>[admin_screen.dart]"]
  node_audit["Audit Logs<br/>[audit_service.dart]"]
end

subgraph group_records["Dispatch Records"]
  node_files["File Dispatch<br/>[file_screen.dart]"]
  node_filedata["File Service<br/>[file_service.dart]"]
  node_letters["Letters<br/>[letter_screen.dart]"]
  node_letterdata["Letter Service"]
  node_pdf["PDF Generation<br/>[pdf_generator.dart]"]
end

subgraph group_work["Work Coordination"]
  node_meetings["Meetings"]
  node_meetingdata["Meeting Service"]
  node_tasks["Tasks<br/>[task_screen.dart]"]
  node_taskdata["Task Service<br/>[task_service.dart]"]
  node_notifications["Notifications"]
end

subgraph group_platform["Platform Runtime"]
  node_winmain["Windows Entry<br/>[main.cpp]"]
  node_flutterwindow["Flutter Host Window<br/>[flutter_window.cpp]"]
  node_winwindow["Win32 Window<br/>[win32_window.cpp]"]
  node_plugins["Plugin Registration"]
end

node_user(("User"))

node_user -.->|"signs in"| node_authui
node_authui -.->|"authenticates"| node_auth
node_authui -.->|"enters app"| node_shell
node_shell -.->|"presents"| node_dashboard
node_shell -.->|"presents"| node_settings
node_shell -.->|"presents"| node_admin
node_admin -.->|"views logs"| node_audit
node_shell -.->|"presents"| node_files
node_files -.->|"uses"| node_filedata
node_shell -.->|"presents"| node_letters
node_letters -.->|"uses"| node_letterdata
node_files -.->|"exports"| node_pdf
node_letters -.->|"exports"| node_pdf
node_shell -.->|"presents"| node_meetings
node_meetings -.->|"uses"| node_meetingdata
node_shell -.->|"presents"| node_tasks
node_tasks -.->|"uses"| node_taskdata
node_main -.->|"starts"| node_shell
node_winmain -->|"creates"| node_flutterwindow
node_flutterwindow -->|"inherits"| node_winwindow
node_flutterwindow -->|"registers"| node_plugins

click node_main "https://github.com/moizrao00/e-foas/blob/main/lib/main.dart"
click node_shell "https://github.com/moizrao00/e-foas/blob/main/lib/screens/shell/app_shell.dart"
click node_dashboard "https://github.com/moizrao00/e-foas/blob/main/lib/screens/dashboard/dashboard_screen.dart"
click node_settings "https://github.com/moizrao00/e-foas/blob/main/lib/screens/settings/settings_screen.dart"
click node_authui "https://github.com/moizrao00/e-foas/blob/main/lib/screens/auth/login_screen.dart"
click node_auth "https://github.com/moizrao00/e-foas/blob/main/lib/services/auth_services.dart"
click node_admin "https://github.com/moizrao00/e-foas/blob/main/lib/screens/admin/admin_screen.dart"
click node_audit "https://github.com/moizrao00/e-foas/blob/main/lib/services/audit_service.dart"
click node_files "https://github.com/moizrao00/e-foas/blob/main/lib/screens/files/file_screen.dart"
click node_filedata "https://github.com/moizrao00/e-foas/blob/main/lib/services/file_service.dart"
click node_letters "https://github.com/moizrao00/e-foas/blob/main/lib/screens/letters/letter_screen.dart"
click node_letterdata "https://github.com/moizrao00/e-foas/blob/main/lib/services/letter_service.dart"
click node_pdf "https://github.com/moizrao00/e-foas/blob/main/lib/core/utils/pdf_generator.dart"
click node_meetings "https://github.com/moizrao00/e-foas/blob/main/lib/screens/meetings/meeting_screen.dart"
click node_meetingdata "https://github.com/moizrao00/e-foas/blob/main/lib/services/meeting_service.dart"
click node_tasks "https://github.com/moizrao00/e-foas/blob/main/lib/screens/tasks/task_screen.dart"
click node_taskdata "https://github.com/moizrao00/e-foas/blob/main/lib/services/task_service.dart"
click node_notifications "https://github.com/moizrao00/e-foas/blob/main/lib/services/notification_service.dart"
click node_winmain "https://github.com/moizrao00/e-foas/blob/main/windows/runner/main.cpp"
click node_flutterwindow "https://github.com/moizrao00/e-foas/blob/main/windows/runner/flutter_window.cpp"
click node_winwindow "https://github.com/moizrao00/e-foas/blob/main/windows/runner/win32_window.cpp"
click node_plugins "https://github.com/moizrao00/e-foas/blob/main/windows/flutter/generated_plugin_registrant.cc"

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_main,node_shell,node_dashboard,node_settings,node_user toneBlue
class node_authui,node_auth,node_admin,node_audit toneAmber
class node_files,node_filedata,node_letters,node_letterdata,node_pdf toneMint
class node_meetings,node_meetingdata,node_tasks,node_taskdata,node_notifications toneRose
class node_winmain,node_flutterwindow,node_winwindow,node_plugins toneIndigo
```

## Components

### Application Shell

- [App Startup](https://github.com/moizrao00/e-foas/blob/main/lib/main.dart): `lib/main.dart`
- [App Shell](https://github.com/moizrao00/e-foas/blob/main/lib/screens/shell/app_shell.dart): `lib/screens/shell/app_shell.dart`
- [Dashboard](https://github.com/moizrao00/e-foas/blob/main/lib/screens/dashboard/dashboard_screen.dart): `lib/screens/dashboard/dashboard_screen.dart`
- [Settings](https://github.com/moizrao00/e-foas/blob/main/lib/screens/settings/settings_screen.dart): `lib/screens/settings/settings_screen.dart`

### Identity and Administration

- [Sign-in Screens](https://github.com/moizrao00/e-foas/blob/main/lib/screens/auth/login_screen.dart): `lib/screens/auth/login_screen.dart`
- [Authentication](https://github.com/moizrao00/e-foas/blob/main/lib/services/auth_services.dart): `lib/services/auth_services.dart`
- [User Administration](https://github.com/moizrao00/e-foas/blob/main/lib/screens/admin/admin_screen.dart): `lib/screens/admin/admin_screen.dart`
- [Audit Logs](https://github.com/moizrao00/e-foas/blob/main/lib/services/audit_service.dart): `lib/services/audit_service.dart`

### Dispatch Records

- [File Dispatch](https://github.com/moizrao00/e-foas/blob/main/lib/screens/files/file_screen.dart): `lib/screens/files/file_screen.dart`
- [File Service](https://github.com/moizrao00/e-foas/blob/main/lib/services/file_service.dart): `lib/services/file_service.dart`
- [Letters](https://github.com/moizrao00/e-foas/blob/main/lib/screens/letters/letter_screen.dart): `lib/screens/letters/letter_screen.dart`
- [Letter Service](https://github.com/moizrao00/e-foas/blob/main/lib/services/letter_service.dart): `lib/services/letter_service.dart`
- [PDF Generation](https://github.com/moizrao00/e-foas/blob/main/lib/core/utils/pdf_generator.dart): `lib/core/utils/pdf_generator.dart`

### Work Coordination

- [Meetings](https://github.com/moizrao00/e-foas/blob/main/lib/screens/meetings/meeting_screen.dart): `lib/screens/meetings/meeting_screen.dart`
- [Meeting Service](https://github.com/moizrao00/e-foas/blob/main/lib/services/meeting_service.dart): `lib/services/meeting_service.dart`
- [Tasks](https://github.com/moizrao00/e-foas/blob/main/lib/screens/tasks/task_screen.dart): `lib/screens/tasks/task_screen.dart`
- [Task Service](https://github.com/moizrao00/e-foas/blob/main/lib/services/task_service.dart): `lib/services/task_service.dart`
- [Notifications](https://github.com/moizrao00/e-foas/blob/main/lib/services/notification_service.dart): `lib/services/notification_service.dart`

### Platform Runtime

- [Windows Entry](https://github.com/moizrao00/e-foas/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter Host Window](https://github.com/moizrao00/e-foas/blob/main/windows/runner/flutter_window.cpp): `windows/runner/flutter_window.cpp`
- [Win32 Window](https://github.com/moizrao00/e-foas/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Plugin Registration](https://github.com/moizrao00/e-foas/blob/main/windows/flutter/generated_plugin_registrant.cc): `windows/flutter/generated_plugin_registrant.cc`

### Other components

- **User**

## Connections

- User → Sign-in Screens: signs in
- Sign-in Screens → Authentication: authenticates
- Sign-in Screens → App Shell: enters app
- App Shell → Dashboard: presents
- App Shell → Settings: presents
- App Shell → User Administration: presents
- User Administration → Audit Logs: views logs
- App Shell → File Dispatch: presents
- File Dispatch → File Service: uses
- App Shell → Letters: presents
- Letters → Letter Service: uses
- File Dispatch → PDF Generation: exports
- Letters → PDF Generation: exports
- App Shell → Meetings: presents
- Meetings → Meeting Service: uses
- App Shell → Tasks: presents
- Tasks → Task Service: uses
- App Startup → App Shell: starts
- Windows Entry → Flutter Host Window: creates (evidence: `windows/runner/main.cpp`)
- Flutter Host Window → Win32 Window: inherits
- Flutter Host Window → Plugin Registration: registers (evidence: `windows/runner/flutter_window.cpp`)
