This Flutter application is designed for ordering food and drinks. It includes features for browsing menus, applying vouchers, placing orders, and canceling orders. The app communicates with a server API to fetch menu data, process orders, and manage vouchers.
- Browse Menus: Explore a variety of food and drinks available in the menu. (Done)
- Apply Vouchers: Apply discount vouchers to your orders for additional savings. (Done)
- Place Orders: Easily place orders with selected items and custom notes.
- Cancel Orders: Cancel placed orders if needed.
Make sure you have Flutter installed on your system. Clone the repository and run the following commands:
flutter pub get
flutter run
- Launch the app on your device or emulator.
- Browse through the menus to select items you want to order.
- Apply any available vouchers for discounts.
- Place your order with custom notes for each item.
- View and manage your orders in the order history.
- Cancel orders if necessary.
The app communicates with a server API to fetch menu data, process orders, and manage vouchers. Ensure that the API is properly configured and accessible.
- Fetch Menus:
GET https://tes-mobile.landa.id/api/menus
- Fetch Vouchers:
GET https://tes-mobile.landa.id/api/vouchers?kode=puas
- Place Order:
POST https://tes-mobile.landa.id/api/order
- Cancel Order:
POST https://tes-mobile.landa.id/api/order/cancel/{id}
- http: For making HTTP requests to the server.
- json_annotation: For JSON serialization/deserialization.