# technophyle-0926/wholesome_bites architecture

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

- Interactive diagram: https://gitdiagram.com/technophyle-0926/wholesome_bites
- Repository: https://github.com/technophyle-0926/wholesome_bites

## Overview

##### Main Architecture Components

a. Presentation Layer (View)
- Main screens/views:
- Splash Screen
- Login Screen
- Dashboard
- Dashboard Details
- Profile Screen

b. Business Logic Layer (Controller)
- Controller component that manages the application logic
- Healthy.controller.dart as the main controller

c. Data Layer (Model)
- Data models:
- Healthy Model
- Profile Model

##### Connection and Flow Representation

a. Data Flow:
- Bidirectional data flow between:
- Views → Controller
- Controller → Models

b. Dependencies:
- Platform-specific implementations (iOS, Android, Web)

##### Additional Elements

Supporting components:
- External dependencies
- Asset management (assets/splash.json)
- Platform-specific configurations

Remember to:
- Keep components proportional to their importance
- Use consistent spacing and alignment
- Clear labels for all components
- Relationship between platform-specific code and shared Flutter code

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Styles
    classDef view fill:#e1f5fe,stroke:#01579b
    classDef controller fill:#e8f5e9,stroke:#1b5e20
    classDef model fill:#fff3e0,stroke:#e65100
    classDef platform fill:#f5f5f5,stroke:#212121
    classDef asset fill:#f3e5f5,stroke:#4a148c

    %% Main Application Entry
    ME["Main Entry Point"]:::controller
    click ME "https://github.com/Technophyle-0926/wholesome_bites/blob/main/lib/main.dart"

    %% Presentation Layer
    subgraph Views
        SS["Splash Screen"]:::view
        LS["Login Screen"]:::view
        DB["Dashboard"]:::view
        DD["Dashboard Details"]:::view
        PS["Profile Screen"]:::view
    end

    click SS "https://github.com/Technophyle-0926/wholesome_bites/blob/main/lib/view/splash.dart"
    click LS "https://github.com/Technophyle-0926/wholesome_bites/blob/main/lib/view/login.dart"
    click DB "https://github.com/Technophyle-0926/wholesome_bites/blob/main/lib/view/dashboard.dart"
    click DD "https://github.com/Technophyle-0926/wholesome_bites/blob/main/lib/view/dashboard_details.dart"
    click PS "https://github.com/Technophyle-0926/wholesome_bites/blob/main/lib/view/profile.dart"

    %% Business Logic Layer
    subgraph Controller
        HC["Healthy Controller"]:::controller
    end

    click HC "https://github.com/Technophyle-0926/wholesome_bites/blob/main/lib/Controller/healty.controller.dart"

    %% Data Layer
    subgraph Models
        HM["Healthy Model"]:::model
        PM["Profile Model"]:::model
    end

    click HM "https://github.com/Technophyle-0926/wholesome_bites/blob/main/lib/Model/healthy.modal.dart"
    click PM "https://github.com/Technophyle-0926/wholesome_bites/blob/main/lib/Model/profile.modal.dart"

    %% Assets
    subgraph Assets
        SA["Splash Animation"]:::asset
    end

    click SA "https://github.com/Technophyle-0926/wholesome_bites/blob/main/assets/splash.json"

    %% Platform-Specific
    subgraph "Platform Implementations"
        AN["Android Native"]:::platform
        IO["iOS Native"]:::platform
        WB["Web Platform"]:::platform
    end

    click AN "https://github.com/Technophyle-0926/wholesome_bites/blob/main/android/app/src/main/kotlin/com/example/healthy_recipies/MainActivity.kt"
    click IO "https://github.com/Technophyle-0926/wholesome_bites/blob/main/ios/Runner/AppDelegate.swift"
    click WB "https://github.com/Technophyle-0926/wholesome_bites/blob/main/web/index.html"

    %% Connections
    ME --> SS & LS & DB & DD & PS
    SS & LS & DB & DD & PS --> HC
    HC --> HM & PM
    SS --> SA

    %% Platform Connections
    ME --> AN & IO & WB

    %% Legend
    subgraph Legend
        V["View Component"]:::view
        C["Controller Component"]:::controller
        M["Model Component"]:::model
        P["Platform Component"]:::platform
        A["Asset Component"]:::asset
    end
```
