How oquendocharles336-gif/melai-nuts-retail works
Melai Nuts is a Flutter prototype for a multi-role nuts business app. The tree indicates authentication and portals for customers, staff, delivery, inventory, and owners, plus commerce, operational, and reporting screens. Its principal user journey appears to be sign-in, enter a role-specific portal, and use that role’s workflows; the customer screens suggest browsing products through cart and checkout. README calls it a prototype and documents Firebase configuration. Dart implementation excerpts were not provided, so internal calls and data ownership cannot be confirmed; the graph shows product areas without inventing their wiring.
Main entry points: app.dart App shell · main.dart Flutter entry · screens Sign-in screens · auth_service.dart Authentication
Components 20
App entry
- Flutter entry
lib/main.dart - App shell
lib/app/app.dart - Route map
lib/app/routes.dart - Route guard
lib/app/route_guard.dart
Identity
- Sign-in screens
lib/features/auth/screens - Authentication
lib/core/services/auth_service.dart
Customer commerce
- Customer workflows
lib/features/customer/screens - Cart controller
lib/features/customer/cart_controller.dart - Payment flow
lib/features/payments/screens - Refund flow
lib/features/refunds/screens
Business operations
- Product management
lib/features/products/screens - Staff POS
lib/features/staff/screens - Inventory screens
lib/features/inventory/screens - Delivery workflows
lib/features/delivery/screens - OCR workflows
lib/features/ocr/screens - Notifications
lib/features/notifications/screens - Data synchronization
lib/core/services/data_sync_service.dart
Management insight
- Owner reporting
lib/features/owner/screens
Other components
- App user
- Firebase services
Connections 18
- App user → Flutter entry: opens
- Flutter entry → App shell: starts
- App shell → Route map: uses routes
- App shell → Route guard: guards navigation
- App user → Sign-in screens: signs in
- Sign-in screens → Authentication: authenticates
- Authentication → Firebase services: uses Firebase
- App user → Customer workflows: shops
- Customer workflows → Cart controller: manages cart
- App user → Payment flow: pays
- App user → Refund flow: requests refund
- App user → Staff POS: uses POS
- App user → Product management: manages products
- App user → Inventory screens: manages stock
- App user → Delivery workflows: manages deliveries
- App user → OCR workflows: scans records
- App user → Notifications: views alerts
- App user → Owner reporting: reviews performance