# pshanmukha/zoom_clone architecture

> Architecture diagram of the GitHub repository pshanmukha/zoom_clone, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pshanmukha/zoom_clone
- Repository: https://github.com/pshanmukha/zoom_clone

## Overview

##### Project type and purpose
- This is a full‑stack mobile application (a “Zoom clone”) built with Flutter, targeting Android and iOS.
- It provides user authentication, meeting creation/joining, real‑time video calls (via Jitsi), chat, meeting history, PIP mode, and settings/logout.

##### File structure
- Top‑level directories:
- android/ & ios/: Native wrappers and build configurations (Gradle, Xcode projects, platform channels).
- lib/: All Dart code—entry point, UI, business logic, service wrappers, utilities, widgets.
- assets/: Static images and animations.
- test/: Widget/unit tests.
- pubspec.yaml: Lists dependencies (firebase_auth, cloud_firestore, jitsi_meet, lottie, etc.).
- Inside lib/:
- main.dart: App entry and routing.
- resources/: AuthMethods, FirestoreMethods, JitsiMeetMethods → service layer.
- screens/: UI pages (login, home, meeting, history, profile, video call).
- widgets/: Reusable UI controls (buttons, meeting options).
- utils/: App‑wide constants and helper functions.

##### README for additional insights
- No custom backend—uses Firebase Auth & Firestore for data and state.
- Uses Jitsi Meet SDK as an external video service.
- UI flow: Sign‑in → Dashboard → Create/Join Meeting → In‑call UI → Chat/History/Settings.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Device Platforms
    subgraph "Device Platforms"
        Android(MainActivity):::native
        iOS(AppDelegate):::native
    end

    %% Flutter App Core
    subgraph "Flutter App"
        main("main.dart"):::core

        subgraph "Presentation Layer"
            LoginScreen("LoginScreen"):::ui
            HomeScreen("HomeScreen"):::ui
            MeetingScreen("MeetingScreen"):::ui
            VideoCallScreen("VideoCallScreen"):::ui
            HistoryMeetingScreen("HistoryMeetingScreen"):::ui
            UserProfileScreen("UserProfileScreen"):::ui

            CustomButton("CustomButton"):::ui
            HomeMeetingButton("HomeMeetingButton"):::ui
            MeetingOption("MeetingOption"):::ui
        end

        subgraph "Service Layer"
            AuthMethods("AuthMethods"):::service
            FirestoreMethods("FirestoreMethods"):::service
            JitsiMeetMethods("JitsiMeetMethods"):::service
        end

        subgraph "Utilities"
            AppColors("AppColors"):::util
            Utils("Utils"):::util
        end
    end

    %% Cloud Services
    subgraph "Firebase Cloud"
        AuthService(("Authentication Service")):::cloud
        FirestoreDB[(Firestore Database)]:::db
    end

    %% External Services
    Jitsi(("Jitsi Meet Service")):::external

    %% Interactions
    Android -->|hosts Flutter| main
    iOS -->|hosts Flutter| main

    main -->|"routes to"| LoginScreen
    main -->|"routes to"| HomeScreen
    main -->|"routes to"| MeetingScreen
    main -->|"routes to"| VideoCallScreen
    main -->|"routes to"| HistoryMeetingScreen
    main -->|"routes to"| UserProfileScreen

    %% UI to Services
    LoginScreen -->|"authenticate()"| AuthMethods
    HomeScreen -->|"loadDashboard()"| FirestoreMethods
    MeetingScreen -->|"createJoinMeeting()"| FirestoreMethods
    VideoCallScreen -->|"joinMeeting()"| JitsiMeetMethods
    HistoryMeetingScreen -->|"fetchHistory()"| FirestoreMethods
    UserProfileScreen -->|"updateProfile()"| FirestoreMethods

    %% Services to External
    AuthMethods -->|"HTTPS"| AuthService
    FirestoreMethods -->|"HTTPS/WebSocket"| FirestoreDB
    JitsiMeetMethods -->|"SDK (WebRTC)"| Jitsi

    %% Real-time updates
    FirestoreDB -->|"real-time listeners"| HomeScreen
    FirestoreDB -->|"real-time listeners"| HistoryMeetingScreen

    %% Widgets usage
    LoginScreen --> CustomButton
    HomeScreen --> HomeMeetingButton
    MeetingScreen --> MeetingOption

    %% Utilities usage
    LoginScreen --> AppColors
    HomeScreen --> AppColors
    MeetingScreen --> AppColors
    VideoCallScreen --> AppColors
    LoginScreen --> Utils
    MeetingScreen --> Utils

    %% Click Events
    click main "https://github.com/pshanmukha/zoom_clone/blob/master/lib/main.dart"
    click LoginScreen "https://github.com/pshanmukha/zoom_clone/blob/master/lib/screens/login_screen.dart"
    click HomeScreen "https://github.com/pshanmukha/zoom_clone/blob/master/lib/screens/home_screen.dart"
    click MeetingScreen "https://github.com/pshanmukha/zoom_clone/blob/master/lib/screens/meeting_screen.dart"
    click VideoCallScreen "https://github.com/pshanmukha/zoom_clone/blob/master/lib/screens/video_call_screen.dart"
    click HistoryMeetingScreen "https://github.com/pshanmukha/zoom_clone/blob/master/lib/screens/history_meeting_screen.dart"
    click UserProfileScreen "https://github.com/pshanmukha/zoom_clone/blob/master/lib/screens/user_profile_screen.dart"
    click CustomButton "https://github.com/pshanmukha/zoom_clone/blob/master/lib/widgets/custom_button.dart"
    click HomeMeetingButton "https://github.com/pshanmukha/zoom_clone/blob/master/lib/widgets/home_meeting_button.dart"
    click MeetingOption "https://github.com/pshanmukha/zoom_clone/blob/master/lib/widgets/meeting_option.dart"
    click AuthMethods "https://github.com/pshanmukha/zoom_clone/blob/master/lib/resources/auth_methods.dart"
    click FirestoreMethods "https://github.com/pshanmukha/zoom_clone/blob/master/lib/resources/firestore_methods.dart"
    click JitsiMeetMethods "https://github.com/pshanmukha/zoom_clone/blob/master/lib/resources/jitsi_meet_methods.dart"
    click AppColors "https://github.com/pshanmukha/zoom_clone/blob/master/lib/utils/colors.dart"
    click Utils "https://github.com/pshanmukha/zoom_clone/blob/master/lib/utils/utils.dart"
    click Android "https://github.com/pshanmukha/zoom_clone/blob/master/android/app/src/main/kotlin/com/example/zoom_clone/MainActivity.kt"
    click iOS "https://github.com/pshanmukha/zoom_clone/blob/master/ios/Runner/AppDelegate.swift"

    %% Styles
    classDef ui fill:#D0E8FF,stroke:#0366d6,color:#0366d6;
    classDef service fill:#E0F8D8,stroke:#28a745,color:#22863a;
    classDef cloud fill:#FFF5B1,stroke:#dbab09,color:#735c0f;
    classDef db fill:#FFDCDC,stroke:#d73a49,color:#b31d28;
    classDef external fill:#F0E6FF,stroke:#6f42c1,color:#5a32a3;
    classDef native fill:#E8E8E8,stroke:#6a737d,color:#57606a;
    classDef core fill:#FFEFEF,stroke:#cb2431,color:#a40e26;
    classDef util fill:#FFF0F6,stroke:#d63384,color:#b31d28;
```
