# raguraman6066/gas_agency_pos architecture

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

- Interactive diagram: https://gitdiagram.com/raguraman6066/gas_agency_pos
- Repository: https://github.com/raguraman6066/gas_agency_pos

## Overview

BlueFlame is a Flutter gas-agency management app. Its principal workflow is staff sign-in, then managing agency operations—customers, products, bookings, deliveries, inventory and manually recorded payments—with dashboard and reports providing oversight. State and data access are separated from presentation through Riverpod and a shared repository contract, with in-memory demo and Supabase implementations. The README documents the feature set and repository arrangement; sampled source does not cover the Dart runtime, so uncertain call-level connections are omitted or marked unverified.

Main entry points: [`lib/features/operations/presentation/operations_screen.dart`](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/operations/presentation/operations_screen.dart) (Operations workflows), [`lib/core/providers.dart`](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/providers.dart) (State and operations), [`lib/core/presentation/app_shell.dart`](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/presentation/app_shell.dart) (App shell), [`lib/features/bookings/presentation/bookings_screen.dart`](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/bookings/presentation/bookings_screen.dart) (Bookings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and access"]
  node_app_entry["Flutter app entry<br/>[main.dart]"]
  node_app_shell["App shell<br/>[app_shell.dart]"]
  node_login["Sign-in<br/>[login_screen.dart]"]
end

subgraph group_operations["Agency operations"]
  node_customers["Customers"]
  node_products["Products"]
  node_bookings["Bookings"]
  node_booking_form["Booking entry"]
  node_booking_detail["Booking detail"]
  node_deliveries["Deliveries"]
  node_inventory["Cylinder stock"]
  node_payments["Payments"]
  node_payment_entry["Payment entry"]
  node_staff_profiles["Staff profiles<br/>[staff_screen.dart]"]
  node_settings["Agency settings"]
  node_operations_hub["Operations workflows"]
end

subgraph group_oversight["Business oversight"]
  node_dashboard["Dashboard"]
  node_reports["Reports"]
end

subgraph group_data["State and data"]
  node_models["Domain models<br/>[models.dart]"]
  node_providers["State and operations<br/>[providers.dart]"]
  node_repository["Repository contract"]
  node_dummy_repo["Demo data"]
  node_supabase_repo["Supabase data access"]
  node_supabase_db[("Supabase database")]
end

node_staff(("Agency staff"))

node_staff -->|"signs in"| node_login
node_staff -.->|"uses"| node_app_shell
node_login -.->|"enters"| node_app_shell
node_app_entry -.->|"starts"| node_app_shell
node_app_shell -.->|"offers workflows"| node_operations_hub
node_operations_hub -->|"supports"| node_customers
node_operations_hub -->|"supports"| node_products
node_operations_hub -->|"supports"| node_bookings
node_operations_hub -->|"supports"| node_deliveries
node_operations_hub -->|"supports"| node_inventory
node_operations_hub -->|"supports"| node_payments
node_operations_hub -->|"supports"| node_reports
node_operations_hub -->|"supports"| node_staff_profiles
node_bookings -.->|"offers entry"| node_booking_form
node_bookings -.->|"offers details"| node_booking_detail
node_payments -.->|"offers entry"| node_payment_entry
node_providers -.->|"uses contract"| node_repository
node_repository -->|"implemented by"| node_dummy_repo
node_repository -->|"implemented by"| node_supabase_repo
node_supabase_repo -->|"reads and writes"| node_supabase_db
node_providers -.->|"manages state"| node_models
node_supabase_repo -.->|"uses models"| node_models
node_dummy_repo -.->|"uses models"| node_models
node_dashboard -.->|"reads state"| node_providers
node_reports -.->|"reads state"| node_providers

click node_app_entry "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/main.dart"
click node_app_shell "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/presentation/app_shell.dart"
click node_login "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/presentation/login_screen.dart"
click node_models "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/domain/models.dart"
click node_providers "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/providers.dart"
click node_repository "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/data/agency_repository.dart"
click node_dummy_repo "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/data/dummy_agency_repository.dart"
click node_supabase_repo "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/data/supabase_agency_repository.dart"
click node_supabase_db "https://github.com/raguraman6066/gas_agency_pos/tree/main/supabase/migrations"
click node_dashboard "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/dashboard/presentation/dashboard_screen.dart"
click node_reports "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/reports/presentation/reports_screen.dart"
click node_customers "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/customers/presentation/customers_screen.dart"
click node_products "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/settings/presentation/products_screen.dart"
click node_bookings "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/bookings/presentation/bookings_screen.dart"
click node_booking_form "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/bookings/presentation/booking_form_screen.dart"
click node_booking_detail "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/bookings/presentation/booking_detail_screen.dart"
click node_deliveries "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/deliveries/presentation/deliveries_screen.dart"
click node_inventory "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/inventory/presentation/inventory_screen.dart"
click node_payments "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/payments/presentation/payments_screen.dart"
click node_payment_entry "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/payments/presentation/payment_entry_screen.dart"
click node_staff_profiles "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/settings/presentation/staff_screen.dart"
click node_settings "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/settings/presentation/settings_screen.dart"
click node_operations_hub "https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/operations/presentation/operations_screen.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_app_entry,node_app_shell,node_login toneBlue
class node_customers,node_products,node_bookings,node_booking_form,node_booking_detail,node_deliveries,node_inventory,node_payments,node_payment_entry,node_staff_profiles,node_settings,node_operations_hub toneAmber
class node_dashboard,node_reports toneMint
class node_models,node_providers,node_repository,node_dummy_repo,node_supabase_repo,node_supabase_db toneRose
class node_staff toneIndigo
```

## Components

### App and access

- [Flutter app entry](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/main.dart): `lib/main.dart`
- [App shell](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/presentation/app_shell.dart): `lib/core/presentation/app_shell.dart`
- [Sign-in](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/presentation/login_screen.dart): `lib/core/presentation/login_screen.dart`

### Agency operations

- [Customers](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/customers/presentation/customers_screen.dart): `lib/features/customers/presentation/customers_screen.dart`
- [Products](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/settings/presentation/products_screen.dart): `lib/features/settings/presentation/products_screen.dart`
- [Bookings](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/bookings/presentation/bookings_screen.dart): `lib/features/bookings/presentation/bookings_screen.dart`
- [Booking entry](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/bookings/presentation/booking_form_screen.dart): `lib/features/bookings/presentation/booking_form_screen.dart`
- [Booking detail](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/bookings/presentation/booking_detail_screen.dart): `lib/features/bookings/presentation/booking_detail_screen.dart`
- [Deliveries](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/deliveries/presentation/deliveries_screen.dart): `lib/features/deliveries/presentation/deliveries_screen.dart`
- [Cylinder stock](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/inventory/presentation/inventory_screen.dart): `lib/features/inventory/presentation/inventory_screen.dart`
- [Payments](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/payments/presentation/payments_screen.dart): `lib/features/payments/presentation/payments_screen.dart`
- [Payment entry](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/payments/presentation/payment_entry_screen.dart): `lib/features/payments/presentation/payment_entry_screen.dart`
- [Staff profiles](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/settings/presentation/staff_screen.dart): `lib/features/settings/presentation/staff_screen.dart`
- [Agency settings](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/settings/presentation/settings_screen.dart): `lib/features/settings/presentation/settings_screen.dart`
- [Operations workflows](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/operations/presentation/operations_screen.dart): `lib/features/operations/presentation/operations_screen.dart`

### Business oversight

- [Dashboard](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/dashboard/presentation/dashboard_screen.dart): `lib/features/dashboard/presentation/dashboard_screen.dart`
- [Reports](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/features/reports/presentation/reports_screen.dart): `lib/features/reports/presentation/reports_screen.dart`

### State and data

- [Domain models](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/domain/models.dart): `lib/core/domain/models.dart`
- [State and operations](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/providers.dart): `lib/core/providers.dart`
- [Repository contract](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/data/agency_repository.dart): `lib/core/data/agency_repository.dart`
- [Demo data](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/data/dummy_agency_repository.dart): `lib/core/data/dummy_agency_repository.dart`
- [Supabase data access](https://github.com/raguraman6066/gas_agency_pos/blob/main/lib/core/data/supabase_agency_repository.dart): `lib/core/data/supabase_agency_repository.dart`
- [Supabase database](https://github.com/raguraman6066/gas_agency_pos/tree/main/supabase/migrations): `supabase/migrations`

### Other components

- **Agency staff**

## Connections

- Agency staff → Sign-in: signs in (evidence: `README.md`)
- Agency staff → App shell: uses
- Sign-in → App shell: enters
- Flutter app entry → App shell: starts
- App shell → Operations workflows: offers workflows
- Operations workflows → Customers: supports (evidence: `README.md`)
- Operations workflows → Products: supports (evidence: `README.md`)
- Operations workflows → Bookings: supports (evidence: `README.md`)
- Operations workflows → Deliveries: supports (evidence: `README.md`)
- Operations workflows → Cylinder stock: supports (evidence: `README.md`)
- Operations workflows → Payments: supports (evidence: `README.md`)
- Operations workflows → Reports: supports (evidence: `README.md`)
- Operations workflows → Staff profiles: supports (evidence: `README.md`)
- Bookings → Booking entry: offers entry
- Bookings → Booking detail: offers details
- Payments → Payment entry: offers entry
- State and operations → Repository contract: uses contract
- Repository contract → Demo data: implemented by (evidence: `README.md`)
- Repository contract → Supabase data access: implemented by (evidence: `README.md`)
- Supabase data access → Supabase database: reads and writes (evidence: `README.md`)
- State and operations → Domain models: manages state
- Supabase data access → Domain models: uses models
- Demo data → Domain models: uses models
- Dashboard → State and operations: reads state
- Reports → State and operations: reads state
