clean_feature_gen library

Clean Feature Generator

A powerful CLI tool and library for generating complete Clean Architecture feature modules in Flutter with BLoC/Cubit support.

Quick Start

# Initialize config in your Flutter project
clean_feature_gen init

# Generate a feature from YAML config
clean_feature_gen generate --config feature.yaml

# Generate with inline options
clean_feature_gen generate --name login --state-management bloc --has-api

Classes

FeatureConfig
Configuration for generating a complete feature module.
FeatureGenerator
Main generator that orchestrates the creation of all feature files.
FieldDefinition
Defines a single field within a model.
GenerateCommand
CLI command to generate a feature from YAML config or inline flags.
InitCommand
CLI command to initialize a sample YAML config file.
ListTemplatesCommand
CLI command to list available templates and generated file structure.
Logger
Simple logger with colored terminal output for the CLI.
ModelDefinition
Defines a data model (entity + DTO).
ParamDefinition
Defines a parameter for a use case.
ScreenDefinition
Defines a screen/page in the presentation layer.
StringUtils
Utility class for common string operations in code generation.
UsecaseDefinition
Defines a use case (business logic operation).

Enums

ScreenType
Screen widget type.
StateManagement
Supported state management approaches.

Extensions

StringUtilsExtension on String
String utility extensions for code generation.