A modern Flutter shopping application with product listing, product details, cart management, and complete test coverage.
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.
- 🧾 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
- Provider (ChangeNotifier)
- Centralized
CartProviderfor add/remove operations - Injected at root level in
main.dart
This project uses LCOV to generate and analyze test coverage reports for Flutter tests.
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- Flutter & Dart
- Riverpod
- json_serializable
- LCOV
Build a release APK for the application:
flutter build apkClone the repository and set up the project:
git clone https://github.com/krushnakantanayak/shopper-app.git
cd shopper-app
flutter pub get
flutter run


