# ammadaali/connect-safecity architecture

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

- Interactive diagram: https://gitdiagram.com/ammadaali/connect-safecity
- Repository: https://github.com/ammadaali/connect-safecity

## Overview

The file tree suggests a Flutter community-safety app combining account management, guardian contacts, emergency services, live location, messaging, and community posts. No README or source excerpts were provided, so the workflows and calls connecting these capabilities cannot be verified; the graph preserves the evident product areas without inventing relationships.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_accounts["Accounts and Profiles"]
  node_user_auth["User Authentication"]
  node_registration["User Registration<br/>[Register_Page.dart]"]
  node_user_profile["User Profile<br/>[myprofile.dart]"]
  node_guardian_registration["Guardian Registration"]
  node_guardian_profile["Guardian Profile"]
end

subgraph group_safety["Safety and Location"]
  node_guardian_contacts["Guardian Contacts"]
  node_trusted_contacts["Trusted Contacts"]
  node_emergency["Emergency Services<br/>[emergency.dart]"]
  node_ambulance["Ambulance Emergency"]
  node_police["Police Emergency"]
  node_firebrigade["Fire Brigade Emergency"]
  node_live_location["Live Location"]
  node_location_map["Location Map"]
  node_tracking["Location Tracking<br/>[trackingg.dart]"]
end

subgraph group_messaging["Messaging"]
  node_group_chat["Group Chat"]
  node_direct_chat["Direct Chat<br/>[chat_Screen.dart]"]
  node_voice_chat["Voice Chat<br/>[voiceChat.dart]"]
end

subgraph group_community["Community Feed"]
  node_community_feed["Community Feed"]
  node_comments["Post Comments<br/>[commentPage.dart]"]
end

subgraph group_administration["Administration"]
  node_admin_dashboard["Admin Dashboard"]
  node_slider_management["Slider Management<br/>[add_NewSlider.dart]"]
end

node_firebase["Firebase Setup"]

click node_user_auth "https://github.com/ammadaali/connect-safecity/blob/main/UserLogin_Screen.dart"
click node_registration "https://github.com/ammadaali/connect-safecity/blob/main/Register_Page.dart"
click node_user_profile "https://github.com/ammadaali/connect-safecity/blob/main/myprofile.dart"
click node_guardian_registration "https://github.com/ammadaali/connect-safecity/blob/main/guardian_register.dart"
click node_guardian_profile "https://github.com/ammadaali/connect-safecity/blob/main/guardians.MyProfile.dart"
click node_guardian_contacts "https://github.com/ammadaali/connect-safecity/blob/main/GuardianList%20Screen.dart"
click node_trusted_contacts "https://github.com/ammadaali/connect-safecity/blob/main/Trusted_Contacts.dart"
click node_emergency "https://github.com/ammadaali/connect-safecity/blob/main/emergency.dart"
click node_ambulance "https://github.com/ammadaali/connect-safecity/blob/main/ambulanceemergency.dart"
click node_police "https://github.com/ammadaali/connect-safecity/blob/main/policeemergency.dart"
click node_firebrigade "https://github.com/ammadaali/connect-safecity/blob/main/firebrigadeemergency.dart"
click node_live_location "https://github.com/ammadaali/connect-safecity/blob/main/sendLiveLocation.dart"
click node_location_map "https://github.com/ammadaali/connect-safecity/blob/main/userLocationMapScreen.dart"
click node_tracking "https://github.com/ammadaali/connect-safecity/blob/main/trackingg.dart"
click node_group_chat "https://github.com/ammadaali/connect-safecity/blob/main/GroupChatScreen.dart"
click node_direct_chat "https://github.com/ammadaali/connect-safecity/blob/main/chat_Screen.dart"
click node_voice_chat "https://github.com/ammadaali/connect-safecity/blob/main/voiceChat.dart"
click node_community_feed "https://github.com/ammadaali/connect-safecity/blob/main/communityFeedPage.dart"
click node_comments "https://github.com/ammadaali/connect-safecity/blob/main/commentPage.dart"
click node_admin_dashboard "https://github.com/ammadaali/connect-safecity/blob/main/admin_dasboard.dart"
click node_slider_management "https://github.com/ammadaali/connect-safecity/blob/main/add_NewSlider.dart"
click node_firebase "https://github.com/ammadaali/connect-safecity/blob/main/firebase_options.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_user_auth,node_registration,node_user_profile,node_guardian_registration,node_guardian_profile toneBlue
class node_guardian_contacts,node_trusted_contacts,node_emergency,node_ambulance,node_police,node_firebrigade,node_live_location,node_location_map,node_tracking toneAmber
class node_group_chat,node_direct_chat,node_voice_chat toneMint
class node_community_feed,node_comments toneRose
class node_admin_dashboard,node_slider_management toneIndigo
class node_firebase toneTeal
```

## Components

### Accounts and Profiles

- [User Authentication](https://github.com/ammadaali/connect-safecity/blob/main/UserLogin_Screen.dart): `UserLogin_Screen.dart`
- [User Registration](https://github.com/ammadaali/connect-safecity/blob/main/Register_Page.dart): `Register_Page.dart`
- [User Profile](https://github.com/ammadaali/connect-safecity/blob/main/myprofile.dart): `myprofile.dart`
- [Guardian Registration](https://github.com/ammadaali/connect-safecity/blob/main/guardian_register.dart): `guardian_register.dart`
- [Guardian Profile](https://github.com/ammadaali/connect-safecity/blob/main/guardians.MyProfile.dart): `guardians.MyProfile.dart`

### Safety and Location

- [Guardian Contacts](https://github.com/ammadaali/connect-safecity/blob/main/GuardianList%20Screen.dart): `GuardianList Screen.dart`
- [Trusted Contacts](https://github.com/ammadaali/connect-safecity/blob/main/Trusted_Contacts.dart): `Trusted_Contacts.dart`
- [Emergency Services](https://github.com/ammadaali/connect-safecity/blob/main/emergency.dart): `emergency.dart`
- [Ambulance Emergency](https://github.com/ammadaali/connect-safecity/blob/main/ambulanceemergency.dart): `ambulanceemergency.dart`
- [Police Emergency](https://github.com/ammadaali/connect-safecity/blob/main/policeemergency.dart): `policeemergency.dart`
- [Fire Brigade Emergency](https://github.com/ammadaali/connect-safecity/blob/main/firebrigadeemergency.dart): `firebrigadeemergency.dart`
- [Live Location](https://github.com/ammadaali/connect-safecity/blob/main/sendLiveLocation.dart): `sendLiveLocation.dart`
- [Location Map](https://github.com/ammadaali/connect-safecity/blob/main/userLocationMapScreen.dart): `userLocationMapScreen.dart`
- [Location Tracking](https://github.com/ammadaali/connect-safecity/blob/main/trackingg.dart): `trackingg.dart`

### Messaging

- [Group Chat](https://github.com/ammadaali/connect-safecity/blob/main/GroupChatScreen.dart): `GroupChatScreen.dart`
- [Direct Chat](https://github.com/ammadaali/connect-safecity/blob/main/chat_Screen.dart): `chat_Screen.dart`
- [Voice Chat](https://github.com/ammadaali/connect-safecity/blob/main/voiceChat.dart): `voiceChat.dart`

### Community Feed

- [Community Feed](https://github.com/ammadaali/connect-safecity/blob/main/communityFeedPage.dart): `communityFeedPage.dart`
- [Post Comments](https://github.com/ammadaali/connect-safecity/blob/main/commentPage.dart): `commentPage.dart`

### Administration

- [Admin Dashboard](https://github.com/ammadaali/connect-safecity/blob/main/admin_dasboard.dart): `admin_dasboard.dart`
- [Slider Management](https://github.com/ammadaali/connect-safecity/blob/main/add_NewSlider.dart): `add_NewSlider.dart`

### Other components

- [Firebase Setup](https://github.com/ammadaali/connect-safecity/blob/main/firebase_options.dart): `firebase_options.dart`
