A Flutter project demonstrating the implementation of Clean Architecture principles.
This project serves as an example project for building scalable and maintainable Flutter applications using Clean Architecture by Kuldii Project.
Clean Architecture, popularized by Robert C. Martin (Uncle Bob), aims to create systems that are:
- Independent of Frameworks
- Testable
- Independent of UI
- Independent of Database
- Independent of any external agency
This project integrates Hive for local storage, ensuring that our data layer remains fast and efficient.
lib/
├── core/
│ ├── error/
│ └── routes/
├── features/
│ ├── feature_name/
│ │ ├── data/
│ │ ├── domain/
│ │ └── presentation/
├── injection.dart
├── observer.dart
└── main.dart
- Clone the repository:
git clone https://github.com/kuldii/tutorial_clean_architecture.git
cd tutorial_clean_architecture- Install dependencies:
flutter clean
flutter pub upgrade --major-versions
flutter pub get- Generate some missing part:
dart run build_runner build --delete-conflicting-outputs- Run the application:
flutter runFor more information on Flutter, visit the official documentation. If you're new to Flutter, consider starting with the Lab: Write your first Flutter app or explore the Cookbook: Useful Flutter samples.