# zal9212/gie_produits_odd_5 architecture

> Architecture diagram of the GitHub repository zal9212/gie_produits_odd_5, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zal9212/gie_produits_odd_5
- Repository: https://github.com/zal9212/gie_produits_odd_5

## Overview

GIE Produits is a Flutter app for a cooperative to track locally transformed products. The main workflow is to browse and filter inventory, add or edit a product (including a photo), inspect its details, and persist product records locally in SQLite. The README documents sales-revenue totals, category visuals, and the supporting screens and widgets. The graph reflects those documented capabilities; Dart implementation excerpts were not provided, so links between app components are based on README descriptions rather than inspected calls.

Main entry points: [`lib/screens/liste_produits_screen.dart`](https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/screens/liste_produits_screen.dart) (Product list), [`lib/screens/formulaire_screen.dart`](https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/screens/formulaire_screen.dart) (Product form), [`lib/main.dart`](https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/main.dart) (App entry and routes), [`lib/screens/detail_produit_screen.dart`](https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/screens/detail_produit_screen.dart) (Product detail)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App navigation"]
  node_entry["App entry and routes<br/>[main.dart]"]
  node_about["About screen<br/>[about_screen.dart]"]
end

subgraph group_inventory["Product workflow"]
  node_list["Product list"]
  node_form["Product form"]
  node_detail["Product detail"]
  node_model["Product model"]
end

subgraph group_presentation["UI components"]
  node_card["Product card<br/>[produit_card.dart]"]
  node_status["Status badge<br/>[badge_statut.dart]"]
end

subgraph group_persistence["Local storage"]
  node_database[("SQLite database")]
end

node_member(("GIE member"))
node_picker["Camera or gallery"]

node_member -->|"opens app"| node_entry
node_entry -->|"opens home"| node_list
node_entry -->|"routes to"| node_form
node_entry -->|"routes to"| node_detail
node_entry -->|"routes to"| node_about
node_member -->|"browses inventory"| node_list
node_list -->|"loads products"| node_database
node_list -->|"shows products"| node_model
node_list -->|"renders cards"| node_card
node_list -->|"shows status"| node_status
node_list -->|"opens product"| node_detail
node_list -->|"starts add"| node_form
node_list -->|"calculates revenue"| node_database
node_member -->|"enters product"| node_form
node_form -->|"selects photo"| node_picker
node_form -->|"creates or edits"| node_model
node_form -->|"saves product"| node_database
node_detail -->|"displays product"| node_model
node_detail -->|"performs actions"| node_database

click node_entry "https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/main.dart"
click node_list "https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/screens/liste_produits_screen.dart"
click node_form "https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/screens/formulaire_screen.dart"
click node_detail "https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/screens/detail_produit_screen.dart"
click node_about "https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/screens/about_screen.dart"
click node_model "https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/models/produit_transforme.dart"
click node_card "https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/widgets/produit_card.dart"
click node_status "https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/widgets/badge_statut.dart"
click node_database "https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/services/database_helper.dart"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_about toneBlue
class node_list,node_form,node_detail,node_model toneAmber
class node_card,node_status toneMint
class node_database toneRose
class node_member,node_picker toneIndigo
```

## Components

### App navigation

- [App entry and routes](https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/main.dart): `lib/main.dart`
- [About screen](https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/screens/about_screen.dart): `lib/screens/about_screen.dart`

### Product workflow

- [Product list](https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/screens/liste_produits_screen.dart): `lib/screens/liste_produits_screen.dart`
- [Product form](https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/screens/formulaire_screen.dart): `lib/screens/formulaire_screen.dart`
- [Product detail](https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/screens/detail_produit_screen.dart): `lib/screens/detail_produit_screen.dart`
- [Product model](https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/models/produit_transforme.dart): `lib/models/produit_transforme.dart`

### UI components

- [Product card](https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/widgets/produit_card.dart): `lib/widgets/produit_card.dart`
- [Status badge](https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/widgets/badge_statut.dart): `lib/widgets/badge_statut.dart`

### Local storage

- [SQLite database](https://github.com/zal9212/gie_produits_odd_5/blob/main/lib/services/database_helper.dart): `lib/services/database_helper.dart`

### Other components

- **GIE member**
- **Camera or gallery**

## Connections

- GIE member → App entry and routes: opens app (evidence: `README.md`)
- App entry and routes → Product list: opens home (evidence: `README.md`)
- App entry and routes → Product form: routes to (evidence: `README.md`)
- App entry and routes → Product detail: routes to (evidence: `README.md`)
- App entry and routes → About screen: routes to (evidence: `README.md`)
- GIE member → Product list: browses inventory (evidence: `README.md`)
- Product list → SQLite database: loads products (evidence: `README.md`)
- Product list → Product model: shows products (evidence: `README.md`)
- Product list → Product card: renders cards (evidence: `README.md`)
- Product list → Status badge: shows status (evidence: `README.md`)
- Product list → Product detail: opens product (evidence: `README.md`)
- Product list → Product form: starts add (evidence: `README.md`)
- Product list → SQLite database: calculates revenue (evidence: `README.md`)
- GIE member → Product form: enters product (evidence: `README.md`)
- Product form → Camera or gallery: selects photo (evidence: `README.md`)
- Product form → Product model: creates or edits (evidence: `README.md`)
- Product form → SQLite database: saves product (evidence: `README.md`)
- Product detail → Product model: displays product (evidence: `README.md`)
- Product detail → SQLite database: performs actions (evidence: `README.md`)
