Skip to content

Repository files navigation

🛒 Shopper App (Flutter)

A modern Flutter shopping application with product listing, product details, cart management, and complete test coverage.


📱 App Overview

The Shopper App allows users to:

  • Browse shoes by brand
  • View product details
  • Select size and add items to cart
  • Manage cart items (delete with confirmation)
  • Enjoy a smooth and test-safe UI experience

The app is built using Flutter, Provider for state management, and includes unit tests and widget tests with high coverage.


✨ Features

  • 🧾 Product listing with brand filters
  • 🔍 Product details page with size selection
  • 🛒 Cart management using Provider
  • 🧹 Delete confirmation dialog
  • 🖼️ Safe image loading with fallback UI
  • 🧪 Unit & widget tests with coverage
  • 📱 Responsive UI with SafeArea handling


🧠 State Management

  • Provider (ChangeNotifier)
  • Centralized CartProvider for add/remove operations
  • Injected at root level in main.dart

🧪 Test Coverage (LCOV)

This project uses LCOV to generate and analyze test coverage reports for Flutter tests.

Generate Coverage

Screenshot 2026-01-08 at 11 46 21 PM Run the following command to execute tests with coverage enabled:
flutter test --coverage 
flutter test --coverage && genhtml coverage/lcov.info -o coverage/html
open coverage/html/index.html

📸 App Screenshots

🛠 Tech Stack

  • Flutter & Dart
  • Riverpod
  • json_serializable
  • LCOV

▶ Build APK

Build a release APK for the application:

flutter build apk

🚀 Getting Started

Clone the repository and set up the project:

git clone https://github.com/krushnakantanayak/shopper-app.git
cd shopper-app
flutter pub get
flutter run

About

This is a shoes store application where user can add shoes to their cart , and purchase them seamlessly.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages