# rohanjsh/loggycian_flutter architecture

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

- Interactive diagram: https://gitdiagram.com/rohanjsh/loggycian_flutter
- Repository: https://github.com/rohanjsh/loggycian_flutter

## Overview

##### Main Components Identification

a) Core Layer:
- Utility modules and base widgets
- Constants and extensions as supporting elements

b) Network Logging Layer:
- This in the middle layer
- Split into MVC pattern (clearly visible in the project structure)
- Controllers and view components

c) Entry Layer:
- At the top level
- Main Loggycian widget integration point

##### Component Relationships

**[Application Layer]**
- ↑↓
**[Loggycian Entry Point]**
- ↑↓
**[Network Logging Layer]**
**┌─────┴─────┐**
**Controller   View**
- ↑↓
**[Core Layer]**

##### Specific Component Details

a) Network Logging Components (Blue):
- NetworkLoggerHomePage
- NetworkRequestDetailsPage
- Associated Controllers
- Network-specific widgets

b) Core Components (Green):
- Utility functions
- Base widgets
- Constants

c) Integration Points (Orange):
- HTTP Client Interceptors (Dio, HTTP, GraphQL)
- Main Loggycian Widget

##### Data Flow Indicators

- Network request/response flow
- User interaction flow
- Data persistence flow

##### Implementation Details

- Supported HTTP clients (Dio, HTTP package, GraphQL)
- Debug mode toggle mechanism
- Search and filter functionality

##### Technical Specifications

Annotations for:
- Flutter framework integration
- Platform support (iOS, Android, Web, Desktop)
- Debug mode conditions

##### Future Extensibility
- Placeholder sections for upcoming features
- Potential integration points for:
- Navigation logging
- Analytics tracking
- Performance metrics
- State management debugging

##### Cross-Platform Support
- Platform-specific considerations
- Universal components vs platform-specific implementations

- The modular nature of the toolkit
- Clear separation of concerns
- Easy integration points
- Extensibility for future features

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Application Layer"
        App[Application]
    end

    subgraph "Entry Layer"
        LoggycianWidget["Loggycian Widget"]:::entry
        LoggycianEntry["Loggycian Entry"]:::entry
    end

    subgraph "Network Logging Layer"
        direction TB
        subgraph "Controllers"
            HomeController["Home Controller"]:::controller
            DetailsController["Details Controller"]:::controller
        end

        subgraph "Views"
            direction TB
            NetworkLoggerHome["Network Logger Home Page"]:::view
            RequestDetailsPage["Request Details Page"]:::view
            
            subgraph "Widgets"
                SearchBar["Search Bar"]:::widget
                LogItem["Log Item"]:::widget
                HeadersSection["Headers Section"]:::widget
                URLSection["URL Section"]:::widget
            end
        end
    end

    subgraph "Core Layer"
        direction TB
        UtilModule["Utility Module"]:::core
        Constants["Constants"]:::core
        Extensions["Extensions"]:::core
        BaseWidgets["Base Widgets"]:::core
    end

    %% Connections
    App --> LoggycianWidget
    LoggycianWidget --> LoggycianEntry
    LoggycianEntry --> NetworkLoggerHome
    NetworkLoggerHome --> HomeController
    RequestDetailsPage --> DetailsController
    
    HomeController --> UtilModule
    DetailsController --> UtilModule
    
    NetworkLoggerHome --> SearchBar
    NetworkLoggerHome --> LogItem
    RequestDetailsPage --> HeadersSection
    RequestDetailsPage --> URLSection
    
    HomeController --> Constants
    HomeController --> Extensions
    DetailsController --> Constants
    DetailsController --> Extensions
    
    SearchBar --> BaseWidgets
    LogItem --> BaseWidgets
    HeadersSection --> BaseWidgets
    URLSection --> BaseWidgets

    %% Click Events
    click UtilModule "https://github.com/rohanjsh/loggycian_flutter/blob/main/lib/src/core/util/util.dart"
    click Constants "https://github.com/rohanjsh/loggycian_flutter/blob/main/lib/src/core/util/constants.dart"
    click Extensions "https://github.com/rohanjsh/loggycian_flutter/blob/main/lib/src/core/util/extensions.dart"
    click BaseWidgets "https://github.com/rohanjsh/loggycian_flutter/blob/main/lib/src/core/widgets/base_button.dart"
    click HomeController "https://github.com/rohanjsh/loggycian_flutter/blob/main/lib/src/networking-view/controller/network_logger_home_controller.dart"
    click DetailsController "https://github.com/rohanjsh/loggycian_flutter/blob/main/lib/src/networking-view/controller/network_request_details_controller.dart"
    click NetworkLoggerHome "https://github.com/rohanjsh/loggycian_flutter/blob/main/lib/src/networking-view/view/pages/network_logger_home_page.dart"
    click RequestDetailsPage "https://github.com/rohanjsh/loggycian_flutter/blob/main/lib/src/networking-view/view/pages/network_request_details_page.dart"
    click SearchBar "https://github.com/rohanjsh/loggycian_flutter/blob/main/lib/src/networking-view/view/widgets/network_search_bar.dart"
    click LogItem "https://github.com/rohanjsh/loggycian_flutter/blob/main/lib/src/networking-view/view/widgets/network_log_item.dart"
    click HeadersSection "https://github.com/rohanjsh/loggycian_flutter/blob/main/lib/src/networking-view/view/widgets/headers_and_body_section.dart"
    click URLSection "https://github.com/rohanjsh/loggycian_flutter/blob/main/lib/src/networking-view/view/widgets/url_section.dart"
    click LoggycianWidget "https://github.com/rohanjsh/loggycian_flutter/blob/main/lib/src/view/loggycian.dart"
    click LoggycianEntry "https://github.com/rohanjsh/loggycian_flutter/blob/main/lib/src/view/loggycian_entry.dart"

    %% Styles
    classDef core fill:#90EE90,stroke:#333,stroke-width:2px
    classDef controller fill:#ADD8E6,stroke:#333,stroke-width:2px
    classDef view fill:#87CEEB,stroke:#333,stroke-width:2px
    classDef widget fill:#B0C4DE,stroke:#333,stroke-width:2px
    classDef entry fill:#FFA500,stroke:#333,stroke-width:2px

    %% Legend
    subgraph Legend
        CoreComponent["Core Component"]:::core
        ControllerComponent["Controller Component"]:::controller
        ViewComponent["View Component"]:::view
        WidgetComponent["Widget Component"]:::widget
        EntryComponent["Entry Component"]:::entry
    end
```
