A beautiful Flutter coffee shop application for ordering, collecting rewards, and managing your account.
The Code Cup is a mobile application built with Flutter that allows users to:
- Browse and order coffee products
- Customize drinks (size, shot, temperature, ice)
- Collect loyalty stamps and reward points
- Redeem rewards for free items
- Track order history
- Manage user profile
- Home Screen: Browse coffee menu with search and category filters
- Details Screen: Customize and add items to cart with real-time price calculation
- Cart Screen: Manage cart items with swipe-to-delete, apply discount codes
- Order Success: Confirmation screen with order tracking
- My Orders: View ongoing and completed orders
- Rewards: Loyalty stamps (8 stamps = free coffee) and points system
- Redeem: Exchange points for rewards
- Profile: Edit user information and settings
- 🌙 Dark mode support
- ❤️ Favorites system
- 🎟️ Discount codes (COFFEE10, FIRST20, FREESHIP, SAVE5)
- 🔔 Notification preferences
- 📖 Help & Support
- 🔒 Privacy Policy
- Framework: Flutter
- State Management: Provider
- Data Persistence: SharedPreferences
- Architecture: Clean layered architecture (Models, Providers, Screens, Widgets)
lib/
├── main.dart
├── constants/
│ ├── colors.dart
│ └── app_data.dart
├── models/
│ ├── coffee.dart
│ ├── cart_item.dart
│ ├── order.dart
│ └── user.dart
├── providers/
│ ├── cart_provider.dart
│ ├── order_provider.dart
│ ├── reward_provider.dart
│ ├── user_provider.dart
│ ├── favorites_provider.dart
│ ├── theme_provider.dart
│ └── notification_provider.dart
├── screens/
│ ├── home_screen.dart
│ ├── details_screen.dart
│ ├── cart_screen.dart
│ ├── order_success_screen.dart
│ ├── orders_screen.dart
│ ├── rewards_screen.dart
│ ├── redeem_screen.dart
│ └── profile_screen.dart
├── widgets/
│ ├── coffee_card.dart
│ ├── cart_item_tile.dart
│ ├── loyalty_card.dart
│ ├── discount_section.dart
│ ├── option_selector.dart
│ └── ...
└── utils/
└── app_dialogs.dart
- Flutter SDK (3.0+)
- Android Studio / VS Code
- Android Emulator or physical device
- Clone the repository:
git clone https://github.com/your-username/the_code_cup.git- Navigate to project directory:
cd the_code_cup- Install dependencies:
flutter pub get- Run the app:
flutter runRun unit tests:
flutter testThis project is created for educational purposes as part of Mobile Device Application Development course.
Made with ❤️ and ☕