# achuthandev/orange-pos-app-poc architecture

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

- Interactive diagram: https://gitdiagram.com/achuthandev/orange-pos-app-poc
- Repository: https://github.com/achuthandev/orange-pos-app-poc

## Overview

Odoo Inventory is a Flutter app whose visible feature structure centers on QR-based authentication and a home screen. The tree also identifies networking, app configuration, and a starter counter feature, but no Dart source or README content was provided, so their runtime interactions and the app’s inventory-specific capabilities cannot be established. The Windows host relationships below are supported by excerpts; other platform and Dart connections are intentionally omitted.

Main entry points: [`windows/runner/flutter_window.cpp`](https://github.com/achuthandev/orange-pos-app-poc/blob/main/windows/runner/flutter_window.cpp) (Flutter window host), [`windows/flutter/generated_plugin_registrant.cc`](https://github.com/achuthandev/orange-pos-app-poc/blob/main/windows/flutter/generated_plugin_registrant.cc) (Windows plugin registration), [`windows/runner/main.cpp`](https://github.com/achuthandev/orange-pos-app-poc/blob/main/windows/runner/main.cpp) (Windows entry point), [`lib/app/view/app.dart`](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/app/view/app.dart) (App shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_product["Flutter app"]
  node_app["App shell<br/>[app.dart]"]
  node_router["App router<br/>[app_router.dart]"]
  node_config["App configuration<br/>[app_config.dart]"]
  node_network["Network client<br/>[dio_provider.dart]"]
  node_apierr["API errors<br/>[api_exception.dart]"]
  node_home["Home screen<br/>[home_page.dart]"]
  node_homebar["Home app bar<br/>[home_app_bar.dart]"]
  node_sessionview["Session view"]
  node_counter["Counter feature<br/>[counter_cubit.dart]"]
  node_counterpage["Counter page<br/>[counter_page.dart]"]
end

subgraph group_auth["Authentication"]
  node_login["Login screen<br/>[login_page.dart]"]
  node_qrpage["QR scanner screen"]
  node_qrview["QR scanner view"]
  node_qrbutton["QR login button"]
  node_loginheader["Login header<br/>[login_header.dart]"]
  node_authprovider["Auth provider<br/>[auth_provider.dart]"]
  node_loginusecase["QR login use case<br/>[login_with_qr.dart]"]
  node_session["Login session<br/>[login_session.dart]"]
end

subgraph group_platform["Desktop host"]
  node_winmain["Windows entry point<br/>[main.cpp]"]
  node_flutterwindow["Flutter window host<br/>[flutter_window.cpp]"]
  node_winwindow["Win32 window<br/>[win32_window.cpp]"]
  node_pluginreg["Windows plugin registration"]
end

node_user(("App user"))
node_plugins["Native plugins"]

node_user -.->|"uses"| node_app
node_winmain -->|"creates"| node_flutterwindow
node_flutterwindow -->|"inherits and delegates"| node_winwindow
node_flutterwindow -->|"registers plugins"| node_pluginreg
node_pluginreg -->|"registers"| node_plugins

click node_app "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/app/view/app.dart"
click node_router "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/app/router/app_router.dart"
click node_config "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/core/config/app_config.dart"
click node_network "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/network/dio_provider.dart"
click node_apierr "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/network/api_exception.dart"
click node_home "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/home/presentation/pages/home_page.dart"
click node_homebar "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/home/presentation/widgets/home_app_bar.dart"
click node_sessionview "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/home/presentation/widgets/login_session_view.dart"
click node_login "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/presentation/pages/login_page.dart"
click node_qrpage "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/presentation/pages/qr_scanner_page.dart"
click node_qrview "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/presentation/widgets/qr_scanner_view.dart"
click node_qrbutton "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/presentation/widgets/qr_login_button.dart"
click node_loginheader "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/presentation/widgets/login_header.dart"
click node_authprovider "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/presentation/providers/auth_provider.dart"
click node_loginusecase "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/domain/usecases/login_with_qr.dart"
click node_session "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/domain/entities/login_session.dart"
click node_counter "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/counter/cubit/counter_cubit.dart"
click node_counterpage "https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/counter/view/counter_page.dart"
click node_winmain "https://github.com/achuthandev/orange-pos-app-poc/blob/main/windows/runner/main.cpp"
click node_flutterwindow "https://github.com/achuthandev/orange-pos-app-poc/blob/main/windows/runner/flutter_window.cpp"
click node_winwindow "https://github.com/achuthandev/orange-pos-app-poc/blob/main/windows/runner/win32_window.cpp"
click node_pluginreg "https://github.com/achuthandev/orange-pos-app-poc/blob/main/windows/flutter/generated_plugin_registrant.cc"

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,node_router,node_config,node_network,node_apierr,node_home,node_homebar,node_sessionview,node_counter,node_counterpage,node_user toneBlue
class node_login,node_qrpage,node_qrview,node_qrbutton,node_loginheader,node_authprovider,node_loginusecase,node_session toneAmber
class node_winmain,node_flutterwindow,node_winwindow,node_pluginreg toneMint
class node_plugins toneIndigo
```

## Components

### Flutter app

- [App shell](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/app/view/app.dart): `lib/app/view/app.dart`
- [App router](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/app/router/app_router.dart): `lib/app/router/app_router.dart`
- [App configuration](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/core/config/app_config.dart): `lib/core/config/app_config.dart`
- [Network client](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/network/dio_provider.dart): `lib/network/dio_provider.dart`
- [API errors](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/network/api_exception.dart): `lib/network/api_exception.dart`
- [Home screen](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/home/presentation/pages/home_page.dart): `lib/features/home/presentation/pages/home_page.dart`
- [Home app bar](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/home/presentation/widgets/home_app_bar.dart): `lib/features/home/presentation/widgets/home_app_bar.dart`
- [Session view](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/home/presentation/widgets/login_session_view.dart): `lib/features/home/presentation/widgets/login_session_view.dart`
- [Counter feature](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/counter/cubit/counter_cubit.dart): `lib/counter/cubit/counter_cubit.dart`
- [Counter page](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/counter/view/counter_page.dart): `lib/counter/view/counter_page.dart`

### Authentication

- [Login screen](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/presentation/pages/login_page.dart): `lib/features/authentication/presentation/pages/login_page.dart`
- [QR scanner screen](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/presentation/pages/qr_scanner_page.dart): `lib/features/authentication/presentation/pages/qr_scanner_page.dart`
- [QR scanner view](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/presentation/widgets/qr_scanner_view.dart): `lib/features/authentication/presentation/widgets/qr_scanner_view.dart`
- [QR login button](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/presentation/widgets/qr_login_button.dart): `lib/features/authentication/presentation/widgets/qr_login_button.dart`
- [Login header](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/presentation/widgets/login_header.dart): `lib/features/authentication/presentation/widgets/login_header.dart`
- [Auth provider](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/presentation/providers/auth_provider.dart): `lib/features/authentication/presentation/providers/auth_provider.dart`
- [QR login use case](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/domain/usecases/login_with_qr.dart): `lib/features/authentication/domain/usecases/login_with_qr.dart`
- [Login session](https://github.com/achuthandev/orange-pos-app-poc/blob/main/lib/features/authentication/domain/entities/login_session.dart): `lib/features/authentication/domain/entities/login_session.dart`

### Desktop host

- [Windows entry point](https://github.com/achuthandev/orange-pos-app-poc/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window host](https://github.com/achuthandev/orange-pos-app-poc/blob/main/windows/runner/flutter_window.cpp): `windows/runner/flutter_window.cpp`
- [Win32 window](https://github.com/achuthandev/orange-pos-app-poc/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Windows plugin registration](https://github.com/achuthandev/orange-pos-app-poc/blob/main/windows/flutter/generated_plugin_registrant.cc): `windows/flutter/generated_plugin_registrant.cc`

### Other components

- **App user**
- **Native plugins**

## Connections

- App user → App shell: uses
- Windows entry point → Flutter window host: creates (evidence: `windows/runner/main.cpp`)
- Flutter window host → Win32 window: inherits and delegates (evidence: `windows/runner/flutter_window.cpp`)
- Flutter window host → Windows plugin registration: registers plugins (evidence: `windows/runner/flutter_window.cpp`)
- Windows plugin registration → Native plugins: registers (evidence: `windows/flutter/generated_plugin_registrant.cc`)
