Skip to content

Repository files navigation

☕ The Code Cup

A beautiful Flutter coffee shop application for ordering, collecting rewards, and managing your account.

📱 About

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

🎯 Features

Core Features

  • 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

Bonus Features

  • 🌙 Dark mode support
  • ❤️ Favorites system
  • 🎟️ Discount codes (COFFEE10, FIRST20, FREESHIP, SAVE5)
  • 🔔 Notification preferences
  • 📖 Help & Support
  • 🔒 Privacy Policy

🛠️ Tech Stack

  • Framework: Flutter
  • State Management: Provider
  • Data Persistence: SharedPreferences
  • Architecture: Clean layered architecture (Models, Providers, Screens, Widgets)

📁 Project Structure

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

🚀 Getting Started

Prerequisites

  • Flutter SDK (3.0+)
  • Android Studio / VS Code
  • Android Emulator or physical device

Installation

  1. Clone the repository:
git clone https://github.com/your-username/the_code_cup.git
  1. Navigate to project directory:
cd the_code_cup
  1. Install dependencies:
flutter pub get
  1. Run the app:
flutter run

🧪 Testing

Run unit tests:

flutter test

📄 License

This project is created for educational purposes as part of Mobile Device Application Development course.


Made with ❤️ and ☕

About

Midterm Project - CSC13009: Mobile Application Development

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages