A Flutter trivia quiz app built from scratch using Test-Driven Development and Clean Architecture.
Questions are fetched from the Open Trivia Database. The project follows a strict Red → Green → Refactor cycle across every layer: domain, data, and presentation.
lib/
└── features/trivia/
├── domain/ # Entities, repository contract, service (business logic)
├── data/ # Models, remote data source, repository implementation
└── presentation/ # BLoC, pages, widgets
- Flutter + Dart 3
flutter_bloc— state managementmocktail+bloc_test— mocking and BLoC testingequatable— value equalityhtml_unescape— decoding API HTML entities
flutter pub get
flutter run
flutter test