How adel-khaled-dev/dhakan works
This is a Flutter app named “pos”; the README describes it only as a new Flutter project. The Dart tree indicates a point-of-sale workflow alongside inventory management and a dashboard, but the Dart implementations were not sampled, so their connections are shown as unverified rather than asserted. The platform runner files host the Flutter app; sampled native code supports that role, not POS domain behavior.
Main entry points: inventory.dart Inventory screen · pos.dart POS screen · main.dart App entry · payment.dart Payment screen
Components 25
Flutter app
- App entry
lib/main.dart - App routing
lib/core/router/app_router.dart
Point of sale
- POS screen
lib/features/pos/presentation/pages/pos.dart - Basket UI
lib/features/pos/presentation/widgets/containar_basket.dart - Checkout data
lib/features/pos/data/model/checkout_data.dart - Payment screen
lib/features/pos/presentation/pages/payment.dart - Invoice screen
lib/features/pos/presentation/pages/invoice.dart - Payment result
lib/features/pos/presentation/pages/payment_ok.dart
Inventory
- Inventory screen
lib/features/inventory/presentation/pages/inventory.dart - Inventory state
lib/features/inventory/presentation/cubit/inventory_cubit.dart - Product logic
lib/features/inventory/domain/logic_product.dart - Add product
lib/features/inventory/presentation/pages/add_product.dart - Update product
lib/features/inventory/presentation/pages/update_product.dart - Categories
lib/features/inventory/presentation/pages/categories.dart
Dashboard
- Dashboard
lib/features/dashboard/presentation/pages/dashboard.dart - Dashboard operations
lib/features/dashboard/data/sources/operation/operations.dart - Low stock logic
lib/features/dashboard/domain/low_stock.dart - Inventory alerts
lib/core/database/inventory_alerts.dart
Platform runners
- Windows runner
windows/runner/main.cpp - Windows Flutter window
windows/runner/flutter_window.cpp - Win32 window host
windows/runner/win32_window.cpp - Linux runner
linux/runner/main.cc - Linux application
linux/runner/my_application.cc - iOS runner
ios/Runner/AppDelegate.swift
Other components
- Staff user
Connections 21
- Staff user → App entry: opens app
- App entry → App routing: routes via
- App routing → POS screen: routes to
- POS screen → Basket UI: shows basket
- POS screen → Checkout data: uses checkout
- POS screen → Inventory screen: opens inventory
- Checkout data → Payment screen: continues to
- Payment screen → Payment result: shows result
- Payment screen → Invoice screen: shows invoice
- Inventory screen → Inventory state: uses state
- Inventory state → Product logic: uses logic
- Inventory screen → Add product: adds products
- Inventory screen → Update product: updates products
- Inventory screen → Categories: manages categories
- App entry → Dashboard: routes to
- Dashboard → Dashboard operations: uses operations
- Dashboard → Low stock logic: checks stock
- Low stock logic → Inventory alerts: uses alerts
- Windows runner → Windows Flutter window: creates window
windows/runner/main.cpp - Windows Flutter window → Win32 window host: extends host
- Linux runner → Linux application: runs application
linux/runner/main.cc