# pankaj1662005/wolrd10 architecture

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

- Interactive diagram: https://gitdiagram.com/pankaj1662005/wolrd10
- Repository: https://github.com/pankaj1662005/wolrd10

## Overview

##### Project type and purpose
- Its purpose is to present multiple UI “screens” (authentication flow, profile settings, home/time/mindmap/transcription screens) with theming support and asset-driven data (JSON in assets).

##### File structure
- Top-level modules:
- android/        → Android platform embedding (MainActivity.kt, Gradle build files, google-services.json)
- windows/        → Windows runner (CMake, native code)
- lib/            → Dart code (application logic & presentation)
– 0 theme/            → Theme definitions & provider
– 1auth/              → Authentication service + login/signup/verification screens
– profile_screens/    → Profile settings & competition submodule
– screens/            → Core feature screens (home, profile, time/mindmap/transcription/summary)
– main.dart           → Application entry point & route setup
- assets/         → Local JSON files for offline data (Bluetooth.json, Champion.json)
- pubspec.yaml    → Declares dependencies, assets & Flutter configuration

##### README for additional insights
- The README is the default Flutter scaffold; no custom architecture notes. All structural insights come from the file tree.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Presentation Layer
    subgraph "Presentation Layer"
        direction TB
        Main["main.dart"]:::entry
        subgraph "UI Modules"
            direction TB
            AuthModule["Auth Module"]:::presentation
            ProfileModule["Profile Module"]:::presentation
            CompetitionSubmodule["Competition Submodule"]:::presentation
            CoreUIScreens["Core UI Screens"]:::presentation
            TimeModule["Time Module"]:::presentation
        end
        ThemeModule["Theme Module"]:::presentation
    end

    %% Service Layer
    subgraph "Service Layer"
        direction TB
        AuthService["Auth Service"]:::service
    end

    %% Data Layer
    subgraph "Data Layer"
        direction TB
        LocalAssets["Local Data Assets"]:::data
        FirebaseAuth["Firebase Auth"]:::external
    end

    %% Platform Hosts
    subgraph "Platform Embedding"
        direction TB
        AndroidHost["Android Host"]:::platform
        WebHost["Web Host"]:::platform
        WindowsHost["Windows Host"]:::platform
    end

    %% Dependency Configuration
    Pubspec["pubspec.yaml"]:::config

    %% Connections
    Main -->|"initializes"| ThemeModule
    Main -->|"loads routes"| AuthModule
    Main -->|"loads routes"| ProfileModule
    Main -->|"loads routes"| CoreUIScreens
    Main -->|"loads routes"| TimeModule

    AuthModule -->|"uses"| AuthService
    ProfileModule -->|"uses"| AuthService
    CoreUIScreens -->|"reads assets"| LocalAssets
    TimeModule -->|"reads assets"| LocalAssets
    ThemeModule -->|"provides theme"| Main
    AuthService -->|"calls"| FirebaseAuth

    Main -->|"configured by"| Pubspec
    Main -->|"runs on"| AndroidHost
    Main -->|"runs on"| WebHost
    Main -->|"runs on"| WindowsHost

    %% Click Events
    click AuthModule "https://github.com/pankaj1662005/wolrd10/tree/main/lib/1auth"
    click AuthService "https://github.com/pankaj1662005/wolrd10/blob/main/lib/1auth/auth service.dart"
    click ThemeModule "https://github.com/pankaj1662005/wolrd10/tree/main/lib/0 theme"
    click ProfileModule "https://github.com/pankaj1662005/wolrd10/tree/main/lib/profile_screens"
    click CompetitionSubmodule "https://github.com/pankaj1662005/wolrd10/tree/main/lib/profile_screens/competetion"
    click CoreUIScreens "https://github.com/pankaj1662005/wolrd10/tree/main/lib/screens"
    click TimeModule "https://github.com/pankaj1662005/wolrd10/tree/main/lib/screens/time_screen"
    click Main "https://github.com/pankaj1662005/wolrd10/blob/main/lib/main.dart"
    click LocalAssets "https://github.com/pankaj1662005/wolrd10/tree/main/assets"
    click AndroidHost "https://github.com/pankaj1662005/wolrd10/blob/main/android/app/src/main/kotlin/com/example/world7/MainActivity.kt"
    click WebHost "https://github.com/pankaj1662005/wolrd10/blob/main/web/index.html"
    click WindowsHost "https://github.com/pankaj1662005/wolrd10/blob/main/windows/runner/main.cpp"
    click Pubspec "https://github.com/pankaj1662005/wolrd10/blob/main/pubspec.yaml"

    %% Styles
    classDef presentation fill:#D0E8FF,stroke:#0366D6,stroke-width:2px
    classDef service fill:#E6FFDD,stroke:#2E8B57,stroke-width:2px
    classDef data fill:#FFE6BA,stroke:#D2691E,stroke-width:2px
    classDef platform fill:#F2F2F2,stroke:#A9A9A9,stroke-width:2px
    classDef external fill:#FFD6D6,stroke:#D32F2F,stroke-width:2px
    classDef entry fill:#FFF5BA,stroke:#E8A317,stroke-width:2px
    classDef config fill:#E8EAF6,stroke:#3F51B5,stroke-width:2px
```
