arch_wizard 1.0.1
arch_wizard: ^1.0.1 copied to clipboard
A powerful CLI tool to scaffold Flutter clean architecture features...
Arch Wizard 🧙✨ #
A powerful and flexible command-line tool to scaffold complete features for your Flutter projects using a clean architecture pattern. Drastically reduce boilerplate and enforce consistency across your team.
Features #
- Automated Scaffolding: Generate the entire directory structure for a new feature with a single command.
- Clean Architecture: Enforces a solid, scalable architecture with a clear separation of layers (Domain, Data, Presentation).
- State Management Support: Out-of-the-box templates for BLoC, Riverpod, GetX, and Provider.
- Automatic DI Registration: Automatically injects your new dependencies and imports into a
get_itservice locator file. - Production-Ready Templates: Generates code with robust error-handling patterns.
Installation #
Activate arch_wizard from your terminal to make it available as a system-wide command.
dart pub global activate arch_wizard
Usage #
1. Run the Command
Navigate to the root directory of your Flutter project and run the create_feature command.
arch_wizard create_feature --name <your_feature_name> --state <state_management>
Examples:
# Create a 'login' feature using BLoC
arch_wizard create_feature --name login --state bloc
# Create a 'cart' feature using Riverpod
arch_wizard create_feature --name cart --state riverpod
The tool will create all the necessary files in lib/features/<your_feature_name>/ and update your dependency injection file automatically.
Command Options #
| Option | Abbreviation | Description | Allowed Values | Default |
|---|---|---|---|---|
--name |
-n |
The name of the feature. | (string) | |
--state |
-s |
The state management solution. | bloc, riverpod, getx, provider |
bloc |
Bugs or Requests #
If you encounter any problems, feel free to open an issue.
License #
This project is licensed under the MIT License - see the LICENSE file for details.