A powerful and simple command-line interface (CLI) tool for generating and modifying BLoC architecture boilerplate in your Flutter or Dart projects.
Quickly generate a complete, working BLoC with a single command.
Ensures all BLoC files follow a consistent folder structure and naming convention.
Easily add new events, handlers, and state properties without manual file edits.
Reduces the amount of manual code you have to write, preventing errors.
Install and activate the package with one simple command.
dart pub global activate dev_bloc_cli
Once activated, you can use the commands from any directory in your terminal.
Creates a new BLoC with `view`, `state`, `events`, and `bloc` files.
dev_bloc_cli generate --name <BlocName>
Adds a new event and a corresponding handler function to an existing BLoC.
dev_bloc_cli add-handler --name <BlocName> --handler <HandlerName>
Adds a new property to the state class. Note: Enclose properties with special characters (like `List
dev_bloc_cli add-state --name <BlocName> --property '<propertyName>:<DataType>'