# kizinerdc/kizine-pro-mobile architecture

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

- Interactive diagram: https://gitdiagram.com/kizinerdc/kizine-pro-mobile
- Repository: https://github.com/kizinerdc/kizine-pro-mobile

## Overview

This is a Flutter point-of-sale and printer app. Its tree indicates catalog browsing and cart management, checkout and payment, receipt printing, Bluetooth printer management, and a sticky-note editor. The Dart implementation was not excerpted and the README documents no workflows, so those product components are represented without speculative connections. The shown native runners only establish their platform window/application launch relationships; platform build and generated-registration machinery is omitted.

Main entry points: [`windows/runner/main.cpp`](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/windows/runner/main.cpp) (Windows runner), [`linux/runner/main.cc`](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/linux/runner/main.cc) (Linux runner), [`windows/runner/flutter_window.h`](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/windows/runner/flutter_window.h) (Windows Flutter window), [`linux/runner/my_application.h`](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/linux/runner/my_application.h) (Linux application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pos["Sales &amp; Catalog"]
  node_catalog["Product catalog<br/>[catalog_page.dart]"]
  node_catalog_data["Product data access"]
  node_product_queries["Product queries<br/>[get_products.dart]"]
  node_product_lookup["Product lookup"]
  node_cart["Catalog cart<br/>[cart_provider.dart]"]
  node_pos_sales["POS sales<br/>[pos_page.dart]"]
  node_pos_cart["POS cart"]
end

subgraph group_checkout["Checkout &amp; Payment"]
  node_checkout_flow["Checkout<br/>[mode_paiment.dart]"]
  node_cash_payment["Cash payment"]
  node_mobile_money["Mobile money"]
  node_order_success["Order confirmation"]
  node_receipt["Receipt presentation"]
end

subgraph group_printing["Printing &amp; Devices"]
  node_printer_ui["Printer controls"]
  node_printer_state["Printer connection state"]
  node_printer_scan["Bluetooth scanning"]
  node_printer_connect["Bluetooth connection"]
  node_printer_diagnostics["Printer diagnostics"]
  node_print_receipt["Receipt printing"]
  node_ticket_builder["ESC/POS ticket builder"]
  node_printer_repo["Printer repository"]
  node_bluetooth_device["Bluetooth data source"]
end

subgraph group_app["App Experience"]
  node_app_entry["Flutter entry<br/>[main.dart]"]
  node_home["Home screen<br/>[home_page.dart]"]
  node_sticky_editor["Sticky editor"]
  node_windows_entry["Windows runner<br/>[main.cpp]"]
  node_windows_flutter["Windows Flutter window<br/>[flutter_window.h]"]
  node_linux_entry["Linux runner<br/>[main.cc]"]
  node_linux_app["Linux application<br/>[my_application.h]"]
  node_windows_core["Windows window base<br/>[win32_window.h]"]
  node_linux_plugins["Linux plugin registration"]
  node_windows_plugins["Windows plugin registration"]
  node_macos_plugins["macOS plugin registration"]
end

node_user(("Cashier"))

node_windows_entry -->|"creates window"| node_windows_flutter
node_windows_entry -.->|"uses window base"| node_windows_core
node_linux_entry -->|"creates application"| node_linux_app

click node_app_entry "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/main.dart"
click node_home "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/shared/presentation/pages/home_page.dart"
click node_catalog "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/catalogs/presentation/pages/catalog_page.dart"
click node_catalog_data "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/catalogs/data/datasources/product_remote_data_source.dart"
click node_product_queries "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/catalogs/domain/usecases/get_products.dart"
click node_product_lookup "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/catalogs/domain/usecases/get_product_by_id.dart"
click node_cart "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/catalogs/presentation/providers/cart_provider.dart"
click node_pos_sales "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/pos_sales.dart/presentation/providers/pos_page.dart"
click node_pos_cart "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/pos_sales.dart/presentation/providers/pos_cart_provider.dart"
click node_checkout_flow "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/checkout/presentation/pages/mode_paiment.dart"
click node_cash_payment "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/checkout/presentation/widgets/cash_payment_bottom_sheet.dart"
click node_mobile_money "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/catalogs/presentation/widgets/mobile_money_bottom_sheet.dart"
click node_order_success "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/checkout/presentation/pages/order_success_page.dart"
click node_receipt "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/checkout/presentation/widgets/printable_receipt_widget.dart"
click node_sticky_editor "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/autocolants/presentation/pages/sticky_editor_page.dart"
click node_printer_ui "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printer_connection/presentation/pages/printer_connect_page.dart"
click node_printer_state "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printer_connection/presentation/providers/printer_connection_notifier.dart"
click node_printer_scan "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printer_connection/domain/usecases/scan_printer_devices.dart"
click node_printer_connect "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printer_connection/domain/usecases/connect_to_printer.dart"
click node_printer_diagnostics "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printer_connection/presentation/pages/printer_diagnostics_page.dart"
click node_print_receipt "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printing/domain/usecases/print_receipt_usecase.dart"
click node_ticket_builder "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printing/data/datasources/esc_pos_ticket_builder.dart"
click node_printer_repo "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printing/data/repositories/receipt_printer_repository_impl.dart"
click node_bluetooth_device "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printer_connection/data/datasources/printer_bluetooth_datasource_impl.dart"
click node_windows_entry "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/windows/runner/main.cpp"
click node_windows_flutter "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/windows/runner/flutter_window.h"
click node_linux_entry "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/linux/runner/main.cc"
click node_linux_app "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/linux/runner/my_application.h"
click node_windows_core "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/windows/runner/win32_window.h"
click node_linux_plugins "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/linux/flutter/generated_plugin_registrant.h"
click node_windows_plugins "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/windows/flutter/generated_plugin_registrant.cc"
click node_macos_plugins "https://github.com/kizinerdc/kizine-pro-mobile/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift"

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_catalog,node_catalog_data,node_product_queries,node_product_lookup,node_cart,node_pos_sales,node_pos_cart toneBlue
class node_checkout_flow,node_cash_payment,node_mobile_money,node_order_success,node_receipt toneAmber
class node_printer_ui,node_printer_state,node_printer_scan,node_printer_connect,node_printer_diagnostics,node_print_receipt,node_ticket_builder,node_printer_repo,node_bluetooth_device toneMint
class node_app_entry,node_home,node_sticky_editor,node_windows_entry,node_windows_flutter,node_linux_entry,node_linux_app,node_windows_core,node_linux_plugins,node_windows_plugins,node_macos_plugins toneRose
class node_user toneIndigo
```

## Components

### Sales & Catalog

- [Product catalog](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/catalogs/presentation/pages/catalog_page.dart): `lib/features/catalogs/presentation/pages/catalog_page.dart`
- [Product data access](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/catalogs/data/datasources/product_remote_data_source.dart): `lib/features/catalogs/data/datasources/product_remote_data_source.dart`
- [Product queries](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/catalogs/domain/usecases/get_products.dart): `lib/features/catalogs/domain/usecases/get_products.dart`
- [Product lookup](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/catalogs/domain/usecases/get_product_by_id.dart): `lib/features/catalogs/domain/usecases/get_product_by_id.dart`
- [Catalog cart](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/catalogs/presentation/providers/cart_provider.dart): `lib/features/catalogs/presentation/providers/cart_provider.dart`
- [POS sales](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/pos_sales.dart/presentation/providers/pos_page.dart): `lib/features/pos_sales.dart/presentation/providers/pos_page.dart`
- [POS cart](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/pos_sales.dart/presentation/providers/pos_cart_provider.dart): `lib/features/pos_sales.dart/presentation/providers/pos_cart_provider.dart`

### Checkout & Payment

- [Checkout](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/checkout/presentation/pages/mode_paiment.dart): `lib/features/checkout/presentation/pages/mode_paiment.dart`
- [Cash payment](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/checkout/presentation/widgets/cash_payment_bottom_sheet.dart): `lib/features/checkout/presentation/widgets/cash_payment_bottom_sheet.dart`
- [Mobile money](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/catalogs/presentation/widgets/mobile_money_bottom_sheet.dart): `lib/features/catalogs/presentation/widgets/mobile_money_bottom_sheet.dart`
- [Order confirmation](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/checkout/presentation/pages/order_success_page.dart): `lib/features/checkout/presentation/pages/order_success_page.dart`
- [Receipt presentation](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/checkout/presentation/widgets/printable_receipt_widget.dart): `lib/features/checkout/presentation/widgets/printable_receipt_widget.dart`

### Printing & Devices

- [Printer controls](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printer_connection/presentation/pages/printer_connect_page.dart): `lib/features/printer_connection/presentation/pages/printer_connect_page.dart`
- [Printer connection state](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printer_connection/presentation/providers/printer_connection_notifier.dart): `lib/features/printer_connection/presentation/providers/printer_connection_notifier.dart`
- [Bluetooth scanning](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printer_connection/domain/usecases/scan_printer_devices.dart): `lib/features/printer_connection/domain/usecases/scan_printer_devices.dart`
- [Bluetooth connection](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printer_connection/domain/usecases/connect_to_printer.dart): `lib/features/printer_connection/domain/usecases/connect_to_printer.dart`
- [Printer diagnostics](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printer_connection/presentation/pages/printer_diagnostics_page.dart): `lib/features/printer_connection/presentation/pages/printer_diagnostics_page.dart`
- [Receipt printing](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printing/domain/usecases/print_receipt_usecase.dart): `lib/features/printing/domain/usecases/print_receipt_usecase.dart`
- [ESC/POS ticket builder](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printing/data/datasources/esc_pos_ticket_builder.dart): `lib/features/printing/data/datasources/esc_pos_ticket_builder.dart`
- [Printer repository](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printing/data/repositories/receipt_printer_repository_impl.dart): `lib/features/printing/data/repositories/receipt_printer_repository_impl.dart`
- [Bluetooth data source](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/printer_connection/data/datasources/printer_bluetooth_datasource_impl.dart): `lib/features/printer_connection/data/datasources/printer_bluetooth_datasource_impl.dart`

### App Experience

- [Flutter entry](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/main.dart): `lib/main.dart`
- [Home screen](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/shared/presentation/pages/home_page.dart): `lib/shared/presentation/pages/home_page.dart`
- [Sticky editor](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/lib/features/autocolants/presentation/pages/sticky_editor_page.dart): `lib/features/autocolants/presentation/pages/sticky_editor_page.dart`
- [Windows runner](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Windows Flutter window](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Linux runner](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/linux/runner/main.cc): `linux/runner/main.cc`
- [Linux application](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/linux/runner/my_application.h): `linux/runner/my_application.h`
- [Windows window base](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/windows/runner/win32_window.h): `windows/runner/win32_window.h`
- [Linux plugin registration](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/linux/flutter/generated_plugin_registrant.h): `linux/flutter/generated_plugin_registrant.h`
- [Windows plugin registration](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/windows/flutter/generated_plugin_registrant.cc): `windows/flutter/generated_plugin_registrant.cc`
- [macOS plugin registration](https://github.com/kizinerdc/kizine-pro-mobile/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift): `macos/Flutter/GeneratedPluginRegistrant.swift`

### Other components

- **Cashier**

## Connections

- Windows runner → Windows Flutter window: creates window (evidence: `windows/runner/main.cpp`)
- Windows runner → Windows window base: uses window base (evidence: `windows/runner/main.cpp`)
- Linux runner → Linux application: creates application (evidence: `linux/runner/main.cc`)
