I’m planning a food delivery app using Flutter and would like some advice on the architecture.
The app will have customers, restaurants, and delivery drivers. Customers should be able to browse restaurants, add items to a cart, place orders, make payments, and track deliveries. Restaurants need to update order statuses, while drivers should receive delivery assignments and share their location.
For a Flutter application with these requirements, would you recommend BLoC, Riverpod, or another state-management approach?
I’m also interested in how others would handle real-time order updates and driver location tracking. Would Firebase be sufficient, or would a separate backend and WebSocket-based solution be better as the number of users grows?
Any recommendations based on real-world Flutter projects would be appreciated.