# lewenbach/gestion-hotel architecture

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

- Interactive diagram: https://gitdiagram.com/lewenbach/gestion-hotel
- Repository: https://github.com/lewenbach/gestion-hotel

## Overview

##### Project type and purpose
- This is a multi-platform Flutter application (“Gestion-Hotel”) for managing hotel clients, displaying services, viewing client history, and selling products.
- It targets Android, iOS and Web via a single Dart/Flutter codebase, with platform folders (android/, ios/, web/) plus shared assets.

##### File structure
- Top-level:
- android/, ios/, web/ – platform runners & configs
- assets/ – fonts & images
- lib/ – the entire Dart application
- pubspec.yaml/.lock – dependencies
- test/ – widget tests
- lib/ substructure:
- Pages/ – UI screens (categoryRoom, room_free/busy, services, historique, sales)
- models/ – data definitions (CategoryRoom, RoomList, Services, VenteModel)
- providers/ – state-management classes (ClientProvider, VenteCartProvider) using Provider
- data_room.dart & constants.dart – static/data sources and constants
- routes.dart – app navigation
- theme.dart – app styling
- main.dart – app entry point

##### README
- Confirms the goal: client management, service presentation, client history, and sales.
- No backend code; this is a standalone front-end that may store data locally or call external APIs.

##### Elements
- Related components (Pages in one container, Widgets in another)

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Platform Runners"
        A["Android"]:::platform
        B["iOS"]:::platform
        C["Web"]:::platform
    end
    D["Flutter Engine & Dart VM"]:::engine
    A --> D
    B --> D
    C --> D

    E["main.dart"]:::entry
    D --> E

    subgraph "Routing & Theming"
        J["routes.dart"]:::core
        K["theme.dart"]:::core
    end

    subgraph "Assets"
        H["assets/fonts"]:::assets
        I["assets/img"]:::assets
    end

    subgraph "Core Configuration"
        F["pubspec.yaml"]:::config
        G["pubspec.lock"]:::config
    end

    R["widget_test.dart"]:::test

    E --> J
    E --> K
    E --> H
    E --> I
    E --> F
    E --> G
    E --> R

    subgraph "Presentation Layer"
        subgraph "Pages"
            L1["categoryRoom.dart"]:::presentation
            L2["room_free.dart"]:::presentation
            L3["room_busy.dart"]:::presentation
            L4["room_state.dart"]:::presentation
            L5["our_services.dart"]:::presentation
            L6["historique.dart"]:::presentation
            L7["vente_cart.dart"]:::presentation
            L8["vente_divers.dart"]:::presentation
            L9["tab_screen.dart"]:::presentation
            L10["edit_client_data.dart"]:::presentation
        end
        subgraph "Widgets"
            M1["room_item.dart"]:::presentation
            M2["room_list_item.dart"]:::presentation
            M3["service_item.dart"]:::presentation
            M4["vente_item.dart"]:::presentation
            M5["vente_cart_item.dart"]:::presentation
            M6["vente_icon.dart"]:::presentation
        end
    end

    subgraph "State Management Layer"
        N1["client.dart"]:::state
        N2["vente_cart.dart"]:::state
    end

    subgraph "Domain/Data Layer"
        O1["category_room.dart"]:::domain
        O2["room_list.dart"]:::domain
        O3["services.dart"]:::domain
        O4["vente_model.dart"]:::domain
        P["data_room.dart"]:::domain
        Q["constants.dart"]:::domain
    end

    E --> L1
    E --> M1
    E --> N1
    E --> O1

    L1 --> N1
    L2 --> N1
    L3 --> N1
    L4 --> N1
    L5 --> N2
    L6 --> N2
    L7 --> N2
    M1 --> O2
    N1 --> O1
    N2 --> O4

    classDef platform fill:#CCCCCC,stroke:#666666,color:#000000
    classDef engine fill:#DDDDDD,stroke:#999999,color:#000000
    classDef entry fill:#EEEEFF,stroke:#6666FF,color:#0000CC
    classDef core fill:#FFEEDD,stroke:#FFBBAA,color:#AA5500
    classDef assets fill:#F3E5F5,stroke:#CE93D8,color:#6A1B9A
    classDef config fill:#FCF3CF,stroke:#F7DC6F,color:#7D6608
    classDef test fill:#FDEDEC,stroke:#E74C3C,color:#C0392B
    classDef presentation fill:#E3F2FD,stroke:#64B5F6,color:#0D47A1
    classDef state fill:#E8F5E9,stroke:#81C784,color:#1B5E20
    classDef domain fill:#FFF3E0,stroke:#FFB74D,color:#E65100

    click A "https://github.com/lewenbach/gestion-hotel/tree/main/oboube/android"
    click B "https://github.com/lewenbach/gestion-hotel/tree/main/oboube/ios"
    click C "https://github.com/lewenbach/gestion-hotel/tree/main/oboube/web"
    click E "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/main.dart"
    click L1 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/Pages/categoryRoom.dart"
    click L2 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/Pages/room_free.dart"
    click L3 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/Pages/room_busy.dart"
    click L4 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/Pages/room_state.dart"
    click L5 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/Pages/our_services.dart"
    click L6 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/Pages/historique.dart"
    click L7 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/Pages/vente_cart.dart"
    click L8 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/Pages/vente_divers.dart"
    click L9 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/Pages/tab_screen.dart"
    click L10 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/Pages/edit_client_data.dart"
    click M1 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/widgets/room_item.dart"
    click M2 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/widgets/room_list_item.dart"
    click M3 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/widgets/service_item.dart"
    click M4 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/widgets/vente_item.dart"
    click M5 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/widgets/vente_cart_item.dart"
    click M6 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/widgets/vente_icon.dart"
    click N1 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/providers/client.dart"
    click N2 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/providers/vente_cart.dart"
    click O1 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/models/category_room.dart"
    click O2 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/models/room_list.dart"
    click O3 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/models/services.dart"
    click O4 "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/models/vente_model.dart"
    click P "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/data_room.dart"
    click Q "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/constants.dart"
    click J "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/routes.dart"
    click K "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/lib/theme.dart"
    click H "https://github.com/lewenbach/gestion-hotel/tree/main/oboube/assets/fonts"
    click I "https://github.com/lewenbach/gestion-hotel/tree/main/oboube/assets/img"
    click F "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/pubspec.yaml"
    click G "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/pubspec.lock"
    click R "https://github.com/lewenbach/gestion-hotel/blob/main/oboube/test/widget_test.dart"
```
