# tech4socialsector/shishughar_mobile architecture

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

- Interactive diagram: https://gitdiagram.com/tech4socialsector/shishughar_mobile
- Repository: https://github.com/tech4socialsector/shishughar_mobile

## Overview

This repository is a Flutter application named Shishughar, but its README describes only a starter project and the supplied source excerpts contain platform launchers rather than the Dart application. The file tree indicates an offline-capable creche/child-care management app spanning enrollment, attendance, health and growth, finances, stock, monitoring, reporting, and synchronization. Those product areas are represented from their exact tree paths; their internal calls and workflow links cannot be verified from the available excerpts, so the graph avoids asserting them.

Main entry points: [`lib/main.dart`](https://github.com/tech4socialsector/shishughar_mobile/blob/main/lib/main.dart) (Flutter app), [`lib/screens/tabed_screens/creche_enrollment`](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/creche_enrollment) (Child enrollment), [`lib/screens/tabed_screens/child_health`](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/child_health) (Health services), [`windows/runner/flutter_window.cpp`](https://github.com/tech4socialsector/shishughar_mobile/blob/main/windows/runner/flutter_window.cpp) (Flutter window host)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["App launch"]
  node_flutter_app["Flutter app<br/>[main.dart]"]
  node_auth["Sign-in and profile<br/>[login_screen.dart]"]
  node_native_hosts["Native platform hosts<br/>[main.cpp]"]
  node_flutter_window["Flutter window host<br/>[flutter_window.cpp]"]
  node_win_base["Windows window base<br/>[win32_window.cpp]"]
  node_linux_host["Linux host<br/>[my_application.cc]"]
  node_plugin_reg["Plugin registration"]
end

subgraph group_care["Child services"]
  node_households["Household records"]
  node_enrollment["Child enrollment"]
  node_attendance["Child attendance"]
  node_growth["Growth monitoring"]
  node_health["Health services"]
  node_immunization["Immunization"]
  node_referrals["Referrals and follow-up"]
  node_grievances["Child grievances"]
  node_events_exit["Events and exit"]
end

subgraph group_operations["Creche operations"]
  node_cashbook["Cashbook"]
  node_stock["Stock and requisitions"]
  node_monitoring["Creche monitoring"]
  node_committee["Committee meetings"]
  node_village["Village profile"]
  node_reports["Dashboards and reports"]
end

subgraph group_platform["Local and remote data"]
  node_sync["Sync and pending data"]
  node_api["API services"]
  node_localdb[("Local database")]
  node_bundled_db[("Bundled database<br/>[sishughar.db]")]
end

node_user(("App user"))

node_user -.->|"opens app"| node_flutter_app
node_native_hosts -->|"creates"| node_flutter_window
node_flutter_window -->|"inherits"| node_win_base
node_linux_host -.->|"registers plugins"| node_plugin_reg
node_flutter_app -.->|"shows screens"| node_auth
node_auth -.->|"opens records"| node_households
node_households -.->|"records children"| node_enrollment
node_enrollment -.->|"tracks attendance"| node_attendance
node_enrollment -.->|"records growth"| node_growth
node_enrollment -.->|"records care"| node_health
node_health -.->|"tracks vaccines"| node_immunization
node_health -.->|"supports referral"| node_referrals
node_enrollment -.->|"records concerns"| node_grievances
node_enrollment -.->|"tracks events"| node_events_exit
node_flutter_app -.->|"opens operations"| node_cashbook
node_flutter_app -.->|"opens operations"| node_stock
node_flutter_app -.->|"opens operations"| node_monitoring
node_flutter_app -.->|"opens operations"| node_committee
node_flutter_app -.->|"opens profiles"| node_village
node_flutter_app -.->|"views reports"| node_reports
node_sync -.->|"syncs data"| node_api
node_sync -.->|"reads and writes"| node_localdb
node_flutter_app -.->|"uses local data"| node_bundled_db
node_plugin_reg -.->|"registers plugins"| node_flutter_window

click node_flutter_app "https://github.com/tech4socialsector/shishughar_mobile/blob/main/lib/main.dart"
click node_auth "https://github.com/tech4socialsector/shishughar_mobile/blob/main/lib/screens/login_screen.dart"
click node_households "https://github.com/tech4socialsector/shishughar_mobile/blob/main/lib/screens/add_household_form_new.dart"
click node_enrollment "https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/creche_enrollment"
click node_attendance "https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/attendence"
click node_growth "https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/anthrometory"
click node_health "https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/child_health"
click node_immunization "https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/child_immunization"
click node_referrals "https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/child_reffrel"
click node_grievances "https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/child_gravience"
click node_events_exit "https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/child_event"
click node_cashbook "https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/cashbook"
click node_stock "https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/stock"
click node_monitoring "https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/creche_monitor"
click node_committee "https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/creche_commite_meeting"
click node_village "https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/village_profile"
click node_reports "https://github.com/tech4socialsector/shishughar_mobile/blob/main/lib/screens/dashboard_report_by_api.dart"
click node_sync "https://github.com/tech4socialsector/shishughar_mobile/blob/main/lib/screens/synchronization_screen_new.dart"
click node_api "https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/api"
click node_localdb "https://github.com/tech4socialsector/shishughar_mobile/blob/main/lib/database/database_helper.dart"
click node_bundled_db "https://github.com/tech4socialsector/shishughar_mobile/blob/main/assets/db/sishughar.db"
click node_native_hosts "https://github.com/tech4socialsector/shishughar_mobile/blob/main/windows/runner/main.cpp"
click node_flutter_window "https://github.com/tech4socialsector/shishughar_mobile/blob/main/windows/runner/flutter_window.cpp"
click node_win_base "https://github.com/tech4socialsector/shishughar_mobile/blob/main/windows/runner/win32_window.cpp"
click node_linux_host "https://github.com/tech4socialsector/shishughar_mobile/blob/main/linux/my_application.cc"
click node_plugin_reg "https://github.com/tech4socialsector/shishughar_mobile/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_flutter_app,node_auth,node_native_hosts,node_flutter_window,node_win_base,node_linux_host,node_plugin_reg,node_user toneBlue
class node_households,node_enrollment,node_attendance,node_growth,node_health,node_immunization,node_referrals,node_grievances,node_events_exit toneAmber
class node_cashbook,node_stock,node_monitoring,node_committee,node_village,node_reports toneMint
class node_sync,node_api,node_localdb,node_bundled_db toneRose
```

## Components

### App launch

- [Flutter app](https://github.com/tech4socialsector/shishughar_mobile/blob/main/lib/main.dart): `lib/main.dart`
- [Sign-in and profile](https://github.com/tech4socialsector/shishughar_mobile/blob/main/lib/screens/login_screen.dart): `lib/screens/login_screen.dart`
- [Native platform hosts](https://github.com/tech4socialsector/shishughar_mobile/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window host](https://github.com/tech4socialsector/shishughar_mobile/blob/main/windows/runner/flutter_window.cpp): `windows/runner/flutter_window.cpp`
- [Windows window base](https://github.com/tech4socialsector/shishughar_mobile/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Linux host](https://github.com/tech4socialsector/shishughar_mobile/blob/main/linux/my_application.cc): `linux/my_application.cc`
- [Plugin registration](https://github.com/tech4socialsector/shishughar_mobile/blob/main/windows/flutter/generated_plugin_registrant.cc): `windows/flutter/generated_plugin_registrant.cc`

### Child services

- [Household records](https://github.com/tech4socialsector/shishughar_mobile/blob/main/lib/screens/add_household_form_new.dart): `lib/screens/add_household_form_new.dart`
- [Child enrollment](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/creche_enrollment): `lib/screens/tabed_screens/creche_enrollment`
- [Child attendance](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/attendence): `lib/screens/tabed_screens/attendence`
- [Growth monitoring](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/anthrometory): `lib/screens/tabed_screens/anthrometory`
- [Health services](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/child_health): `lib/screens/tabed_screens/child_health`
- [Immunization](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/child_immunization): `lib/screens/tabed_screens/child_immunization`
- [Referrals and follow-up](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/child_reffrel): `lib/screens/tabed_screens/child_reffrel`
- [Child grievances](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/child_gravience): `lib/screens/tabed_screens/child_gravience`
- [Events and exit](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/child_event): `lib/screens/tabed_screens/child_event`

### Creche operations

- [Cashbook](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/cashbook): `lib/screens/tabed_screens/cashbook`
- [Stock and requisitions](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/stock): `lib/screens/tabed_screens/stock`
- [Creche monitoring](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/creche_monitor): `lib/screens/tabed_screens/creche_monitor`
- [Committee meetings](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/creche_commite_meeting): `lib/screens/tabed_screens/creche_commite_meeting`
- [Village profile](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/screens/tabed_screens/village_profile): `lib/screens/tabed_screens/village_profile`
- [Dashboards and reports](https://github.com/tech4socialsector/shishughar_mobile/blob/main/lib/screens/dashboard_report_by_api.dart): `lib/screens/dashboard_report_by_api.dart`

### Local and remote data

- [Sync and pending data](https://github.com/tech4socialsector/shishughar_mobile/blob/main/lib/screens/synchronization_screen_new.dart): `lib/screens/synchronization_screen_new.dart`
- [API services](https://github.com/tech4socialsector/shishughar_mobile/tree/main/lib/api): `lib/api`
- [Local database](https://github.com/tech4socialsector/shishughar_mobile/blob/main/lib/database/database_helper.dart): `lib/database/database_helper.dart`
- [Bundled database](https://github.com/tech4socialsector/shishughar_mobile/blob/main/assets/db/sishughar.db): `assets/db/sishughar.db`

### Other components

- **App user**

## Connections

- App user → Flutter app: opens app
- Native platform hosts → Flutter window host: creates (evidence: `windows/runner/main.cpp`)
- Flutter window host → Windows window base: inherits
- Linux host → Plugin registration: registers plugins
- Flutter app → Sign-in and profile: shows screens
- Sign-in and profile → Household records: opens records
- Household records → Child enrollment: records children
- Child enrollment → Child attendance: tracks attendance
- Child enrollment → Growth monitoring: records growth
- Child enrollment → Health services: records care
- Health services → Immunization: tracks vaccines
- Health services → Referrals and follow-up: supports referral
- Child enrollment → Child grievances: records concerns
- Child enrollment → Events and exit: tracks events
- Flutter app → Cashbook: opens operations
- Flutter app → Stock and requisitions: opens operations
- Flutter app → Creche monitoring: opens operations
- Flutter app → Committee meetings: opens operations
- Flutter app → Village profile: opens profiles
- Flutter app → Dashboards and reports: views reports
- Sync and pending data → API services: syncs data
- Sync and pending data → Local database: reads and writes
- Flutter app → Bundled database: uses local data
- Plugin registration → Flutter window host: registers plugins
