# milanfataniya/wetalk architecture

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

- Interactive diagram: https://gitdiagram.com/milanfataniya/wetalk
- Repository: https://github.com/milanfataniya/wetalk

## Overview

The tree suggests a Flutter messaging app, with authentication, a home/chat experience, and user profiles. The README is only a Flutter starter description, and no Dart source was excerpted, so the workflow and service connections below are inferred from filenames and are marked unverified; implementation details and Firebase usage cannot be confirmed.

Main entry points: [`lib/screens/home_screen.dart`](https://github.com/milanfataniya/wetalk/blob/master/lib/screens/home_screen.dart) (Home screen), [`lib/main.dart`](https://github.com/milanfataniya/wetalk/blob/master/lib/main.dart) (App bootstrap), [`lib/screens/splash_screen.dart`](https://github.com/milanfataniya/wetalk/blob/master/lib/screens/splash_screen.dart) (Splash screen), [`lib/screens/ChatScreen.dart`](https://github.com/milanfataniya/wetalk/blob/master/lib/screens/ChatScreen.dart) (Chat screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App flow"]
  node_bootstrap["App bootstrap<br/>[main.dart]"]
  node_splash["Splash screen<br/>[splash_screen.dart]"]
  node_home["Home screen<br/>[home_screen.dart]"]
  node_chat["Chat screen<br/>[ChatScreen.dart]"]
  node_chatcard["Chat user card"]
end

subgraph group_users["Identity and profiles"]
  node_auth["Google sign-in<br/>[google_signin.dart]"]
  node_model["Chat user model<br/>[chat_user.dart]"]
  node_profile["My profile"]
  node_otherprofile["Other user profile"]
end

subgraph group_platform["Platform services"]
  node_internet["Connectivity check"]
end

node_user(("User"))
node_firebase[("Firebase services")]

node_user -.->|"launches"| node_bootstrap
node_bootstrap -.->|"shows"| node_splash
node_splash -.->|"continues to"| node_home
node_home -.->|"opens chat"| node_chat
node_home -.->|"renders"| node_chatcard
node_user -.->|"signs in"| node_auth
node_auth -.->|"may authenticate"| node_firebase
node_home -.->|"may check"| node_internet
node_home -.->|"opens"| node_profile
node_home -.->|"opens"| node_otherprofile
node_chatcard -.->|"may display"| node_model
node_chat -.->|"may use"| node_firebase

click node_bootstrap "https://github.com/milanfataniya/wetalk/blob/master/lib/main.dart"
click node_splash "https://github.com/milanfataniya/wetalk/blob/master/lib/screens/splash_screen.dart"
click node_home "https://github.com/milanfataniya/wetalk/blob/master/lib/screens/home_screen.dart"
click node_chat "https://github.com/milanfataniya/wetalk/blob/master/lib/screens/ChatScreen.dart"
click node_chatcard "https://github.com/milanfataniya/wetalk/blob/master/lib/widgets/chat_user_card.dart"
click node_auth "https://github.com/milanfataniya/wetalk/blob/master/lib/auth/google_signin.dart"
click node_internet "https://github.com/milanfataniya/wetalk/blob/master/lib/auth/internet_check.dart"
click node_model "https://github.com/milanfataniya/wetalk/blob/master/lib/models/chat_user.dart"
click node_profile "https://github.com/milanfataniya/wetalk/blob/master/lib/screens/profile_screen.dart"
click node_otherprofile "https://github.com/milanfataniya/wetalk/blob/master/lib/screens/other_user_profile.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_bootstrap,node_splash,node_home,node_chat,node_chatcard,node_user toneBlue
class node_auth,node_model,node_profile,node_otherprofile,node_firebase toneAmber
class node_internet toneMint
```

## Components

### App flow

- [App bootstrap](https://github.com/milanfataniya/wetalk/blob/master/lib/main.dart): `lib/main.dart`
- [Splash screen](https://github.com/milanfataniya/wetalk/blob/master/lib/screens/splash_screen.dart): `lib/screens/splash_screen.dart`
- [Home screen](https://github.com/milanfataniya/wetalk/blob/master/lib/screens/home_screen.dart): `lib/screens/home_screen.dart`
- [Chat screen](https://github.com/milanfataniya/wetalk/blob/master/lib/screens/ChatScreen.dart): `lib/screens/ChatScreen.dart`
- [Chat user card](https://github.com/milanfataniya/wetalk/blob/master/lib/widgets/chat_user_card.dart): `lib/widgets/chat_user_card.dart`

### Identity and profiles

- [Google sign-in](https://github.com/milanfataniya/wetalk/blob/master/lib/auth/google_signin.dart): `lib/auth/google_signin.dart`
- [Chat user model](https://github.com/milanfataniya/wetalk/blob/master/lib/models/chat_user.dart): `lib/models/chat_user.dart`
- [My profile](https://github.com/milanfataniya/wetalk/blob/master/lib/screens/profile_screen.dart): `lib/screens/profile_screen.dart`
- [Other user profile](https://github.com/milanfataniya/wetalk/blob/master/lib/screens/other_user_profile.dart): `lib/screens/other_user_profile.dart`

### Platform services

- [Connectivity check](https://github.com/milanfataniya/wetalk/blob/master/lib/auth/internet_check.dart): `lib/auth/internet_check.dart`

### Other components

- **User**
- **Firebase services**

## Connections

- User → App bootstrap: launches
- App bootstrap → Splash screen: shows
- Splash screen → Home screen: continues to
- Home screen → Chat screen: opens chat
- Home screen → Chat user card: renders
- User → Google sign-in: signs in
- Google sign-in → Firebase services: may authenticate
- Home screen → Connectivity check: may check
- Home screen → My profile: opens
- Home screen → Other user profile: opens
- Chat user card → Chat user model: may display
- Chat screen → Firebase services: may use
