# vilar95/mobile-sigma architecture

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

- Interactive diagram: https://gitdiagram.com/vilar95/mobile-sigma
- Repository: https://github.com/vilar95/mobile-sigma

## Overview

Sigma is a Flutter medical-service app; the README distinguishes its mobile appointment use from medical management handled by a separate web version. The tree indicates authentication, home, appointment scheduling and history, and support screens, with controllers, models, shared widgets, and an HTTP service layer. The intended user journey is entry, authentication, and appointment activity, with support as a separate capability. Dart implementation excerpts were not provided, so screen-to-controller and service-call relationships are unverified; dashed links mark that limitation. Native runner files are platform hosts, not domain stages.

Main entry points: [`lib/screens/home_screen.dart`](https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/home_screen.dart) (Home screen), [`lib/screens/schedule_screen.dart`](https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/schedule_screen.dart) (Find appointments), [`lib/services/dio_service.dart`](https://github.com/vilar95/mobile-sigma/blob/main/lib/services/dio_service.dart) (HTTP service), [`lib/screens/auth_screen.dart`](https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/auth_screen.dart) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Mobile app"]
  node_entry["App entry<br/>[main.dart]"]
  node_auth["Authentication<br/>[auth_screen.dart]"]
  node_authctl["Auth controller"]
  node_home["Home screen<br/>[home_screen.dart]"]
  node_drawer["Navigation drawer<br/>[drawer_widget.dart]"]
  node_support["Support screen"]
  node_supportctl["Support controller"]
  node_supportsend["Send support"]
  node_splash["Splash screen<br/>[splash_screen.dart]"]
end

subgraph group_domain["Appointment domain"]
  node_schedule["Find appointments"]
  node_schedctl["Schedule controller"]
  node_doctor["Doctor specialties"]
  node_register["Registration data<br/>[register.dart]"]
  node_confirm["Booking confirmation"]
  node_myschedule["My appointments"]
end

subgraph group_shared["Shared app services"]
  node_api["HTTP service<br/>[dio_service.dart]"]
  node_endpoints["API endpoints<br/>[dio_endpoints.dart]"]
  node_routes["App routes<br/>[sigma_routes.dart]"]
end

subgraph group_platform["Platform hosts"]
  node_windowsmain["Windows launcher<br/>[main.cpp]"]
  node_flutterwindow["Windows Flutter host<br/>[flutter_window.h]"]
  node_win32window["Windows window host<br/>[win32_window.h]"]
  node_linuxapp["Linux application host<br/>[my_application.cc]"]
  node_linuxmain["Linux launcher<br/>[main.cc]"]
  node_linuxplugins["Linux plugin registry"]
  node_windowsplugins["Windows plugin registry"]
  node_iosapp["iOS app host<br/>[AppDelegate.swift]"]
  node_macplugins["macOS plugin registry"]
end

node_user(("Mobile user"))

node_user -.->|"opens"| node_entry
node_entry -.->|"routes to"| node_auth
node_auth -.->|"uses"| node_authctl
node_auth -.->|"continues to"| node_home
node_home -.->|"offers navigation"| node_drawer
node_home -.->|"opens"| node_schedule
node_schedule -.->|"uses"| node_schedctl
node_schedule -.->|"presents"| node_doctor
node_schedule -.->|"confirms via"| node_confirm
node_home -.->|"opens"| node_myschedule
node_home -.->|"opens"| node_support
node_support -.->|"uses"| node_supportctl
node_support -.->|"offers"| node_supportsend
node_authctl -.->|"calls"| node_api
node_schedctl -.->|"calls"| node_api
node_supportctl -.->|"calls"| node_api
node_api -.->|"uses"| node_endpoints
node_windowsmain -->|"creates"| node_flutterwindow
node_flutterwindow -->|"extends"| node_win32window
node_linuxmain -->|"starts"| node_linuxapp
node_linuxapp -->|"registers"| node_linuxplugins
node_iosapp -->|"registers"| node_macplugins

click node_entry "https://github.com/vilar95/mobile-sigma/blob/main/lib/main.dart"
click node_auth "https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/auth_screen.dart"
click node_authctl "https://github.com/vilar95/mobile-sigma/blob/main/lib/controller/auth_screen_controller.dart"
click node_home "https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/home_screen.dart"
click node_drawer "https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/widgets/drawer_widget.dart"
click node_schedule "https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/schedule_screen.dart"
click node_schedctl "https://github.com/vilar95/mobile-sigma/blob/main/lib/controller/schedule_screen_controller.dart"
click node_doctor "https://github.com/vilar95/mobile-sigma/blob/main/lib/model/speciality_doctor.dart"
click node_register "https://github.com/vilar95/mobile-sigma/blob/main/lib/model/register.dart"
click node_confirm "https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/widgets/show_confirm_schecule_dialog.dart"
click node_myschedule "https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/my_schedule_screen.dart"
click node_support "https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/support_screen.dart"
click node_supportctl "https://github.com/vilar95/mobile-sigma/blob/main/lib/controller/support_screen_controller.dart"
click node_supportsend "https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/widgets/show_send_support.dart"
click node_api "https://github.com/vilar95/mobile-sigma/blob/main/lib/services/dio_service.dart"
click node_endpoints "https://github.com/vilar95/mobile-sigma/blob/main/lib/services/dio_endpoints.dart"
click node_routes "https://github.com/vilar95/mobile-sigma/blob/main/lib/_core/routes/sigma_routes.dart"
click node_splash "https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/splash_screen.dart"
click node_windowsmain "https://github.com/vilar95/mobile-sigma/blob/main/windows/runner/main.cpp"
click node_flutterwindow "https://github.com/vilar95/mobile-sigma/blob/main/windows/runner/flutter_window.h"
click node_win32window "https://github.com/vilar95/mobile-sigma/blob/main/windows/runner/win32_window.h"
click node_linuxapp "https://github.com/vilar95/mobile-sigma/blob/main/linux/my_application.cc"
click node_linuxmain "https://github.com/vilar95/mobile-sigma/blob/main/linux/main.cc"
click node_linuxplugins "https://github.com/vilar95/mobile-sigma/blob/main/linux/flutter/generated_plugin_registrant.h"
click node_windowsplugins "https://github.com/vilar95/mobile-sigma/blob/main/windows/flutter/generated_plugin_registrant.h"
click node_iosapp "https://github.com/vilar95/mobile-sigma/blob/main/ios/Runner/AppDelegate.swift"
click node_macplugins "https://github.com/vilar95/mobile-sigma/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift"

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_auth,node_authctl,node_home,node_drawer,node_support,node_supportctl,node_supportsend,node_splash,node_user toneBlue
class node_schedule,node_schedctl,node_doctor,node_register,node_confirm,node_myschedule toneAmber
class node_api,node_endpoints,node_routes toneMint
class node_windowsmain,node_flutterwindow,node_win32window,node_linuxapp,node_linuxmain,node_linuxplugins,node_windowsplugins,node_iosapp,node_macplugins toneRose
```

## Components

### Mobile app

- [App entry](https://github.com/vilar95/mobile-sigma/blob/main/lib/main.dart): `lib/main.dart`
- [Authentication](https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/auth_screen.dart): `lib/screens/auth_screen.dart`
- [Auth controller](https://github.com/vilar95/mobile-sigma/blob/main/lib/controller/auth_screen_controller.dart): `lib/controller/auth_screen_controller.dart`
- [Home screen](https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/home_screen.dart): `lib/screens/home_screen.dart`
- [Navigation drawer](https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/widgets/drawer_widget.dart): `lib/screens/widgets/drawer_widget.dart`
- [Support screen](https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/support_screen.dart): `lib/screens/support_screen.dart`
- [Support controller](https://github.com/vilar95/mobile-sigma/blob/main/lib/controller/support_screen_controller.dart): `lib/controller/support_screen_controller.dart`
- [Send support](https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/widgets/show_send_support.dart): `lib/screens/widgets/show_send_support.dart`
- [Splash screen](https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/splash_screen.dart): `lib/screens/splash_screen.dart`

### Appointment domain

- [Find appointments](https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/schedule_screen.dart): `lib/screens/schedule_screen.dart`
- [Schedule controller](https://github.com/vilar95/mobile-sigma/blob/main/lib/controller/schedule_screen_controller.dart): `lib/controller/schedule_screen_controller.dart`
- [Doctor specialties](https://github.com/vilar95/mobile-sigma/blob/main/lib/model/speciality_doctor.dart): `lib/model/speciality_doctor.dart`
- [Registration data](https://github.com/vilar95/mobile-sigma/blob/main/lib/model/register.dart): `lib/model/register.dart`
- [Booking confirmation](https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/widgets/show_confirm_schecule_dialog.dart): `lib/screens/widgets/show_confirm_schecule_dialog.dart`
- [My appointments](https://github.com/vilar95/mobile-sigma/blob/main/lib/screens/my_schedule_screen.dart): `lib/screens/my_schedule_screen.dart`

### Shared app services

- [HTTP service](https://github.com/vilar95/mobile-sigma/blob/main/lib/services/dio_service.dart): `lib/services/dio_service.dart`
- [API endpoints](https://github.com/vilar95/mobile-sigma/blob/main/lib/services/dio_endpoints.dart): `lib/services/dio_endpoints.dart`
- [App routes](https://github.com/vilar95/mobile-sigma/blob/main/lib/_core/routes/sigma_routes.dart): `lib/_core/routes/sigma_routes.dart`

### Platform hosts

- [Windows launcher](https://github.com/vilar95/mobile-sigma/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Windows Flutter host](https://github.com/vilar95/mobile-sigma/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Windows window host](https://github.com/vilar95/mobile-sigma/blob/main/windows/runner/win32_window.h): `windows/runner/win32_window.h`
- [Linux application host](https://github.com/vilar95/mobile-sigma/blob/main/linux/my_application.cc): `linux/my_application.cc`
- [Linux launcher](https://github.com/vilar95/mobile-sigma/blob/main/linux/main.cc): `linux/main.cc`
- [Linux plugin registry](https://github.com/vilar95/mobile-sigma/blob/main/linux/flutter/generated_plugin_registrant.h): `linux/flutter/generated_plugin_registrant.h`
- [Windows plugin registry](https://github.com/vilar95/mobile-sigma/blob/main/windows/flutter/generated_plugin_registrant.h): `windows/flutter/generated_plugin_registrant.h`
- [iOS app host](https://github.com/vilar95/mobile-sigma/blob/main/ios/Runner/AppDelegate.swift): `ios/Runner/AppDelegate.swift`
- [macOS plugin registry](https://github.com/vilar95/mobile-sigma/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift): `macos/Flutter/GeneratedPluginRegistrant.swift`

### Other components

- **Mobile user**

## Connections

- Mobile user → App entry: opens
- App entry → Authentication: routes to
- Authentication → Auth controller: uses
- Authentication → Home screen: continues to
- Home screen → Navigation drawer: offers navigation
- Home screen → Find appointments: opens
- Find appointments → Schedule controller: uses
- Find appointments → Doctor specialties: presents
- Find appointments → Booking confirmation: confirms via
- Home screen → My appointments: opens
- Home screen → Support screen: opens
- Support screen → Support controller: uses
- Support screen → Send support: offers
- Auth controller → HTTP service: calls
- Schedule controller → HTTP service: calls
- Support controller → HTTP service: calls
- HTTP service → API endpoints: uses
- Windows launcher → Windows Flutter host: creates (evidence: `windows/runner/main.cpp`)
- Windows Flutter host → Windows window host: extends (evidence: `windows/runner/flutter_window.h`)
- Linux launcher → Linux application host: starts (evidence: `linux/main.cc`)
- Linux application host → Linux plugin registry: registers (evidence: `linux/my_application.cc`)
- iOS app host → macOS plugin registry: registers (evidence: `ios/Runner/AppDelegate.swift`)
