The project is structured using Clean Architecture principles, which divide the codebase into several layers:
- Presentation Layer: This layer contains UI components, including screens, widgets, and Flutter-specific code.
- Domain Layer: Here, we define the business logic and use cases of the application. It includes the core business rules and entities.
- Data Layer: This layer manages data sources, repositories, and data models. It handles data retrieval and storage.
- Clean Separation of Concerns: Clear separation between layers for better maintainability and testability.
- Dependency Injection: We use the get_it package for managing dependencies.
- Sample Use Cases: Includes sample interactions and use cases.
- Organized Project Structure: A well-organized structure for easy navigation and development.
Follow these steps to run this project on your local machine:
- Clone the repository:
git clone https://github.com/shahanajparvin/clean_architecture_flutter_example.git
- Navigate to the project directory:
cd flutter-clean-architecture-example
- Install dependencies:
flutter pub get
- Run the app:
flutter run
We use several packages to facilitate Clean Architecture and improve developer productivity, including:
- get_it for dependency injection.
- dio for making network requests.
- equatable for value equality.
- bloc for state management.
For the complete list of dependencies, refer to the pubspec.yaml file.
If you would like to contribute to this project or have suggestions for improvements, please feel free to open an issue or submit a pull request. We welcome and appreciate your contributions!
This project is licensed under the MIT License.