# naoltesema/ieect_books architecture

> Architecture diagram of the GitHub repository naoltesema/ieect_books, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/naoltesema/ieect_books
- Repository: https://github.com/naoltesema/ieect_books

## Overview

##### Main Components Identification

The system appears to be a Flutter cross-platform application with the following key components:

a. Frontend Layer (UI Components):
- Welcome Page
- Books Page
- Level Page
- PDF List
- PDF Viewer Screen
- Shared Components (like custom buttons)

b. Asset Management:
- PDF Storage System (organized by levels)
- Image Resources

c. Platform-Specific Implementations:
- Android
- iOS
- Web
- Desktop (Windows, Linux, MacOS)

**┌─ User Interface Layer ─────────────────┐**
- ┌─────────┐ ┌─────────┐ ┌─────────┐   │
- Welcome  │ │ Books   │ │ Level   │   │
- Page    │ │ Page    │ │ Page    │   │
- ┘ └─────────┘ └─────────┘   │
- ┌─────────┐ ┌─────────┐              │
- PDF List │ │PDF      │              │
- Viewer   │              │
- ┘ └─────────┘              │
- ┘

**┌─ Core Components ──────────────────────┐**
- ┌─────────────┐ ┌──────────────────┐  │
- PDF Resource │ │Navigation        │  │
- Management   │ │Controller        │  │
- ┘ └──────────────────┘  │
- ┘

**┌─ Asset Storage ───────────────────────┐**
- ┌─────────┐ ┌─────────┐ ┌─────────┐  │
- Level 2  │ │Level 3  │ │Level 4  │  │
- PDFs     │ │PDFs     │ │PDFs     │  │
- ┘ └─────────┘ └─────────┘  │
- ┘

##### Connection Flows

- User interaction flow between pages
- Data flow from PDF storage to viewer
- Platform-specific implementations to core functionality

##### Important Elements

a. Main Components:
- Flutter Framework Container
- Platform-Specific Containers
- PDF Viewer Engine
- Asset Management System

b. Interactions:
- User Input Handlers
- PDF Loading Flows
- Navigation Patterns

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph UI
        WP["Welcome Page"]:::ui
        BP["Books Page"]:::ui
        LP["Level Page"]:::ui
        PL["PDF List"]:::ui
        PV["PDF Viewer"]:::ui
        SC["Shared Components"]:::ui
        
        WP --> BP
        BP --> LP
        LP --> PL
        PL --> PV
    end

    subgraph Core
        PRM["PDF Resource Management"]:::core
        NC["Navigation Controller"]:::core
        
        PRM --> PV
        NC --> WP
        NC --> BP
        NC --> LP
        NC --> PL
    end

    subgraph Assets
        L2["Level 2 PDFs"]:::storage
        L3["Level 3 PDFs"]:::storage
        L4["Level 4 PDFs"]:::storage
        IR["Image Resources"]:::storage
        
        L2 --> PRM
        L3 --> PRM
        L4 --> PRM
        IR --> PRM
    end

    subgraph Platform
        AN["Android"]:::platform
        IO["iOS"]:::platform
        WE["Web"]:::platform
        WI["Windows"]:::platform
        LI["Linux"]:::platform
        MA["MacOS"]:::platform
        
        AN --> MA["Main App"]:::core
        IO --> MA
        WE --> MA
        WI --> MA
        LI --> MA
        MA --> NC
    end

    classDef ui fill:#3498db,stroke:#2980b9,color:white
    classDef core fill:#2ecc71,stroke:#27ae60,color:white
    classDef storage fill:#e67e22,stroke:#d35400,color:white
    classDef platform fill:#95a5a6,stroke:#7f8c8d,color:white

    click WP "https://github.com/naoltesema/ieect_books/blob/main/lib/pages/welcome_page.dart"
    click BP "https://github.com/naoltesema/ieect_books/blob/main/lib/pages/books_page.dart"
    click LP "https://github.com/naoltesema/ieect_books/blob/main/lib/pages/level_page.dart"
    click PL "https://github.com/naoltesema/ieect_books/blob/main/lib/pages/pdf_list.dart"
    click PV "https://github.com/naoltesema/ieect_books/blob/main/lib/pages/pdf_viewer_screen.dart"
    click SC "https://github.com/naoltesema/ieect_books/blob/main/lib/components/my_button.dart"
    click L2 "https://github.com/naoltesema/ieect_books/tree/main/assets/pdf/level2/"
    click L3 "https://github.com/naoltesema/ieect_books/tree/main/assets/pdf/level3/"
    click L4 "https://github.com/naoltesema/ieect_books/tree/main/assets/pdf/level4/"
    click IR "https://github.com/naoltesema/ieect_books/tree/main/assets/image/"
    click AN "https://github.com/naoltesema/ieect_books/tree/main/android/app/src/main/"
    click IO "https://github.com/naoltesema/ieect_books/tree/main/ios/Runner/"
    click WE "https://github.com/naoltesema/ieect_books/tree/main/web/"
    click WI "https://github.com/naoltesema/ieect_books/tree/main/windows/runner/"
    click LI "https://github.com/naoltesema/ieect_books/tree/main/linux/"
    click MA "https://github.com/naoltesema/ieect_books/blob/main/lib/main.dart"
```
