flutter_feature_maker 1.0.0
flutter_feature_maker: ^1.0.0 copied to clipboard
A CLI tool for scaffolding Flutter feature folders using clean architecture, built-in and custom templates, and state management support.
Example #
Install the CLI, then generate a feature.
dart pub global activate flutter_feature_maker
Non-interactive #
Generate a Clean architecture feature named authentication using bloc:
feature_maker create --name authentication --template Clean --state bloc
Produces:
lib/features/authentication/
├── data/
│ ├── datasources/
│ ├── models/
│ └── repositories/
├── domain/
│ ├── entities/
│ ├── repositories/
│ └── usecases/
└── presentation/
├── bloc/
│ ├── authentication_bloc.dart
│ ├── authentication_event.dart
│ └── authentication_state.dart
├── screens/
│ └── authentication_screen.dart
└── widgets/
Interactive #
Run without flags and answer the prompts:
feature_maker create
Other commands #
feature_maker list-templates # show built-in and custom templates
feature_maker save-template --local # save a custom template for this project
feature_maker config --set-path lib/modules
feature_maker version