Client-side implementation: - New service: order_polling_service.dart - Timer-based polling every 30s - Updated AppState: track active order ID and current status - Cart integration: start polling after order submission - In-app notifications: color-coded SnackBar for status changes - Notification widget: animated banner (created for future use) Status notification colors: - Blue = Submitted (1) - Orange = Preparing (2) - Green = Ready (3) - Purple = Completed (4) Polling workflow: 1. User submits order → polling starts with status=1 2. Every 30s: check backend for status changes 3. On update: show notification + update AppState 4. Continues until order completed or app closed Simple polling approach (Option 2) with planned migration to self-hosted WebSocket push for instant updates. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| models | ||
| screens | ||
| services | ||
| widgets | ||
| main.dart | ||