# sharonwanjiru392/messenger_app architecture

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

- Interactive diagram: https://gitdiagram.com/sharonwanjiru392/messenger_app
- Repository: https://github.com/sharonwanjiru392/messenger_app

## Overview

This is a Flutter messenger-app starter. Its tree suggests a user journey spanning welcome, authentication, chat-list/home, and individual chat screens, with an auth controller as an internal layer; the Dart implementations were not excerpted, so their behavior and connections cannot be verified. The README documents no additional product capabilities. The graph therefore shows only platform-host relationships visible in the supplied excerpts and leaves the Dart workflow unconnected rather than guessing at calls.

Main entry points: [`windows/runner/flutter_window.h`](https://github.com/sharonwanjiru392/messenger_app/blob/master/windows/runner/flutter_window.h) (Flutter window), [`windows/runner/main.cpp`](https://github.com/sharonwanjiru392/messenger_app/blob/master/windows/runner/main.cpp) (Windows entry), [`linux/runner/main.cc`](https://github.com/sharonwanjiru392/messenger_app/blob/master/linux/runner/main.cc) (Linux entry), [`windows/runner/win32_window.h`](https://github.com/sharonwanjiru392/messenger_app/blob/master/windows/runner/win32_window.h) (Win32 window)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_welcome["Welcome screen<br/>[WelcomePage.dart]"]
  node_home["Home screen<br/>[HomePage.dart]"]
  node_chat_list["Chat list<br/>[ChatsList.dart]"]
  node_chat["Chat screen<br/>[ChatPage.dart]"]
end

subgraph group_auth["Authentication"]
  node_auth_screen["Auth screen<br/>[AuthPage.dart]"]
  node_auth_forms["Login and signup"]
  node_auth_controller["Auth controller"]
end

subgraph group_platform["Flutter platform hosts"]
  node_entry["Windows entry<br/>[main.cpp]"]
  node_flutter_window["Flutter window<br/>[flutter_window.h]"]
  node_win32_window["Win32 window<br/>[win32_window.h]"]
  node_linux_entry["Linux entry<br/>[main.cc]"]
  node_linux_app["Linux app host<br/>[my_application.h]"]
  node_linux_plugins["Linux plugin registration"]
  node_windows_plugins["Windows plugin registration"]
  node_macos_plugins["macOS plugin registration"]
end

node_user(("App user"))

node_entry -->|"creates"| node_flutter_window
node_flutter_window -->|"extends"| node_win32_window
node_linux_entry -->|"creates"| node_linux_app

click node_welcome "https://github.com/sharonwanjiru392/messenger_app/blob/master/lib/pages/Welcome/WelcomePage.dart"
click node_auth_screen "https://github.com/sharonwanjiru392/messenger_app/blob/master/lib/pages/Auth/AuthPage.dart"
click node_auth_forms "https://github.com/sharonwanjiru392/messenger_app/tree/master/lib/pages/Auth/Widgets"
click node_auth_controller "https://github.com/sharonwanjiru392/messenger_app/blob/master/lib/Controller/AuthController.dart"
click node_home "https://github.com/sharonwanjiru392/messenger_app/blob/master/lib/pages/Home/HomePage.dart"
click node_chat_list "https://github.com/sharonwanjiru392/messenger_app/blob/master/lib/pages/Home/Widget/ChatsList.dart"
click node_chat "https://github.com/sharonwanjiru392/messenger_app/blob/master/lib/pages/Chat/ChatPage.dart"
click node_entry "https://github.com/sharonwanjiru392/messenger_app/blob/master/windows/runner/main.cpp"
click node_flutter_window "https://github.com/sharonwanjiru392/messenger_app/blob/master/windows/runner/flutter_window.h"
click node_win32_window "https://github.com/sharonwanjiru392/messenger_app/blob/master/windows/runner/win32_window.h"
click node_linux_entry "https://github.com/sharonwanjiru392/messenger_app/blob/master/linux/runner/main.cc"
click node_linux_app "https://github.com/sharonwanjiru392/messenger_app/blob/master/linux/runner/my_application.h"
click node_linux_plugins "https://github.com/sharonwanjiru392/messenger_app/blob/master/linux/flutter/generated_plugin_registrant.h"
click node_windows_plugins "https://github.com/sharonwanjiru392/messenger_app/blob/master/windows/flutter/generated_plugin_registrant.h"
click node_macos_plugins "https://github.com/sharonwanjiru392/messenger_app/blob/master/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_welcome,node_home,node_chat_list,node_chat,node_user toneBlue
class node_auth_screen,node_auth_forms,node_auth_controller toneAmber
class node_entry,node_flutter_window,node_win32_window,node_linux_entry,node_linux_app,node_linux_plugins,node_windows_plugins,node_macos_plugins toneMint
```

## Components

### App experience

- [Welcome screen](https://github.com/sharonwanjiru392/messenger_app/blob/master/lib/pages/Welcome/WelcomePage.dart): `lib/pages/Welcome/WelcomePage.dart`
- [Home screen](https://github.com/sharonwanjiru392/messenger_app/blob/master/lib/pages/Home/HomePage.dart): `lib/pages/Home/HomePage.dart`
- [Chat list](https://github.com/sharonwanjiru392/messenger_app/blob/master/lib/pages/Home/Widget/ChatsList.dart): `lib/pages/Home/Widget/ChatsList.dart`
- [Chat screen](https://github.com/sharonwanjiru392/messenger_app/blob/master/lib/pages/Chat/ChatPage.dart): `lib/pages/Chat/ChatPage.dart`

### Authentication

- [Auth screen](https://github.com/sharonwanjiru392/messenger_app/blob/master/lib/pages/Auth/AuthPage.dart): `lib/pages/Auth/AuthPage.dart`
- [Login and signup](https://github.com/sharonwanjiru392/messenger_app/tree/master/lib/pages/Auth/Widgets): `lib/pages/Auth/Widgets`
- [Auth controller](https://github.com/sharonwanjiru392/messenger_app/blob/master/lib/Controller/AuthController.dart): `lib/Controller/AuthController.dart`

### Flutter platform hosts

- [Windows entry](https://github.com/sharonwanjiru392/messenger_app/blob/master/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/sharonwanjiru392/messenger_app/blob/master/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Win32 window](https://github.com/sharonwanjiru392/messenger_app/blob/master/windows/runner/win32_window.h): `windows/runner/win32_window.h`
- [Linux entry](https://github.com/sharonwanjiru392/messenger_app/blob/master/linux/runner/main.cc): `linux/runner/main.cc`
- [Linux app host](https://github.com/sharonwanjiru392/messenger_app/blob/master/linux/runner/my_application.h): `linux/runner/my_application.h`
- [Linux plugin registration](https://github.com/sharonwanjiru392/messenger_app/blob/master/linux/flutter/generated_plugin_registrant.h): `linux/flutter/generated_plugin_registrant.h`
- [Windows plugin registration](https://github.com/sharonwanjiru392/messenger_app/blob/master/windows/flutter/generated_plugin_registrant.h): `windows/flutter/generated_plugin_registrant.h`
- [macOS plugin registration](https://github.com/sharonwanjiru392/messenger_app/blob/master/macos/Flutter/GeneratedPluginRegistrant.swift): `macos/Flutter/GeneratedPluginRegistrant.swift`

### Other components

- **App user**

## Connections

- Windows entry → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Flutter window → Win32 window: extends (evidence: `windows/runner/flutter_window.h`)
- Linux entry → Linux app host: creates (evidence: `linux/runner/main.cc`)
