# Root Project
.
├── lib # Name of module (default from Flutter)
| ├── domains # Name of directory
| | ├── domain A # Domains module with a data and domains layer inside it.
| | ├── domain B
| | └── domain etc
| |
| ├── features # Name of directory
| | ├── feature A # Feature module with a presentation/ui/feature layer inside it.
| | ├── feature B
| | └── feature etc
| |
| ├── resources # Name of directory
| | └── resources # Handle resources like assets, fonts, constant value, etc.
| |
| └── shared_libraries # Name of directory
| ├── common # Handle common utility class.
| ├── component # Handle custom widget.
| ├── core # Core module.
| └── dependencies # Handle dependency injection related stuff.
- Clean Architecture - The blueprint for a modular system, which strictly follows the design principle called separation of concerns.
- Dependency Injection (get_it) - Simple direct Service Locator that allows to decouple the interface from a concrete implementation and to access the concrete implementation from everywhere in your App.
- State Management (BLoC) - Business logic component to separate the business logic with UI.
- Dio - A type-safe HTTP client.
-
Clone the project: Use the command
git clone <repository-url>
to clone the project to your local machine. -
Navigate to the project directory: Use the command
cd <project-name>
to navigate into the root directory of the project. -
Check Flutter and Dart versions: Make sure you have the correct versions of Flutter and Dart installed. You can check your versions with
flutter --version
anddart --version
. If necessary, update your Flutter and Dart SDKs. -
Get the dependencies: Run
flutter pub get
to fetch the project dependencies. -
Check for any dependency issues: Run
flutter doctor
to check for any potential issues with your Flutter installation. -
Run the project: Use the command
flutter run
to start the project. If you have multiple devices connected, useflutter run -d <device-id>
to specify the device.
- Tinh Huynh
Don't forget to follow me, fork and give me a ⭐