🏗️ mason_brick_clean_architecture_feature_riverpod
This brick can generate feature folders and files for clean architecture and riverpod.
Installation
Make sure you have installed Mason. If you don't, follow the installation guide to get started.
Once you have Mason installed, you can add the clean_architecture_feature_riverpod brick to the configuration by adding the following code to your mason.yaml file:
bricks:
clean_architecture_feature_riverpod: 0.1.0+2
Usage 🕹️
To use the clean_architecture_feature_riverpod brick, and generate code. You can run the following command in your terminal:
mason make clean_architecture_feature_riverpod
Variables ✨
The following table outlines the variables that can be used when generating a new feature folder.
Variable | Description | Required | Type |
---|---|---|---|
feature_name | 🏷️ Name of the folder, files. | Yes | string |
Packages 🗂️
Need to make sure your project has these packages.
- hooks_riverpod
Output 📦
lib/
├── features
│ ├── {{feature_Name}}
│ │ ├── data
│ │ │ ├── data_sources
│ │ │ ├── {{feature_Name}}_local_data_source_impl.dart
│ │ │ ├── {{feature_Name}}_remote_data_source_impl.dart
│ │ │ ├── models
│ │ │ ├── temp.dart
│ │ │ └── repositories
│ │ │ ├── {{feature_Name}}_repository_impl.dart
│ │ ├── domain
│ │ │ ├── data_sources
│ │ │ ├── {{feature_Name}}_local_data_source.dart
│ │ │ ├── {{feature_Name}}_remote_data_source.dart
│ │ │ ├── repositories
│ │ │ ├── {{feature_Name}}_repository.dart
│ │ └── presentation
│ │ ├── pages
│ │ │ ├── {{feature_Name}}_page.dart
│ │ ├── widget
│ │ │ ├── {{feature_Name}}_widget.dart
│ │ ├── providers
│ │ │ ├── {{feature_Name}}_provider.dart