No description
Find a file
John Mizerek 008b6d45b2 Add polling service for order status notifications
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>
2025-12-31 16:07:23 -08:00
android Add production API support and fix login flow 2025-12-31 12:04:50 -08:00
ios Initial commit (Payfrit Flutter app scaffold) 2025-12-28 12:28:45 -08:00
lib Add polling service for order status notifications 2025-12-31 16:07:23 -08:00
linux Initial commit (Payfrit Flutter app scaffold) 2025-12-28 12:28:45 -08:00
macos Fix nested modifier saving with proper parent tracking 2025-12-30 14:40:55 -08:00
test Initial commit (Payfrit Flutter app scaffold) 2025-12-28 12:28:45 -08:00
web Initial commit (Payfrit Flutter app scaffold) 2025-12-28 12:28:45 -08:00
.gitignore Initial commit (Payfrit Flutter app scaffold) 2025-12-28 12:28:45 -08:00
.metadata Initial commit (Payfrit Flutter app scaffold) 2025-12-28 12:28:45 -08:00
analysis_options.yaml Initial commit (Payfrit Flutter app scaffold) 2025-12-28 12:28:45 -08:00
pubspec.lock Fix nested modifier saving with proper parent tracking 2025-12-30 14:40:55 -08:00
pubspec.yaml Fix nested modifier saving with proper parent tracking 2025-12-30 14:40:55 -08:00
README.md Initial commit (Payfrit Flutter app scaffold) 2025-12-28 12:28:45 -08:00

payfrit_app

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.