How aissaboukr-hub/billing_app works
This is a Flutter billing/POS application, with visible modules for authentication, shop and product management, checkout, sales history, data transfer, and printer settings. The likely user flow is entering the app, managing shop/products, then scanning items and completing checkout; history and import/export support follow-on operations. The source excerpts contain no application runtime code and the README is empty, so these stages are based on the file tree. Dashed, uncited edges indicate unverified likely interactions, not inspected calls.
Main entry points: app_routes.dart Navigation · product_list_page.dart Product Catalog · checkout_page.dart Checkout · main.dart App Entry
Components 22
App Shell
- App Entry
lib/main.dart - Navigation
lib/config/routes/app_routes.dart - Authentication
lib/features/auth/presentation/pages/auth_page.dart - User Management
lib/features/auth/presentation/pages/user_management_page.dart - Local Database
lib/core/data/hive_database.dart
Shop and Catalog
- Shop Details
lib/features/shop/presentation/pages/shop_details_page.dart - Shop Data
lib/features/shop/data/repositories/shop_repository_impl.dart - Product Catalog
lib/features/product/presentation/pages/product_list_page.dart - Product Editing
lib/features/product/presentation/pages/add_product_page.dart - Product Repository
lib/features/product/data/repositories/product_repository_impl.dart
Billing and History
- Barcode Scanner
lib/features/billing/presentation/pages/scanner_page.dart - Checkout
lib/features/billing/presentation/pages/checkout_page.dart - Billing State
lib/features/billing/presentation/bloc/billing_bloc.dart - Sales Returns
lib/features/billing/presentation/pages/return_page.dart - Sales History
lib/features/history/presentation/pages/history_page.dart - History Service
lib/features/history/data/history_service.dart
Operations
- Import and Export
lib/features/data_transfer/presentation/pages/import_export_page.dart - Transfer Service
lib/features/data_transfer/data/data_transfer_service.dart
Settings and Printing
- Printer Settings
lib/features/settings/presentation/pages/settings_page.dart - Printer Control
lib/features/settings/presentation/bloc/printer_bloc.dart - Printer Repository
lib/features/settings/data/repositories/printer_repository_impl.dart
Other components
- Shop Operator
Connections 21
- Shop Operator → App Entry: opens
- App Entry → Navigation: starts navigation
- Navigation → Authentication: routes to
- Navigation → Shop Details: routes to
- Navigation → Product Catalog: routes to
- Navigation → Barcode Scanner: routes to
- Navigation → Checkout: routes to
- Navigation → Sales History: routes to
- Navigation → Import and Export: routes to
- Navigation → Printer Settings: routes to
- Shop Details → Shop Data: uses
- Product Catalog → Product Editing: opens editor
- Product Catalog → Product Repository: loads products
- Product Editing → Product Repository: saves products
- Barcode Scanner → Billing State: submits scans
- Checkout → Billing State: dispatches events
- Checkout → Sales Returns: supports returns
- Sales History → History Service: loads records
- Import and Export → Transfer Service: delegates transfer
- Printer Settings → Printer Control: configures
- Printer Control → Printer Repository: delegates printing