Tools for building applications using the bloc state management library.
Our top sponsors are shown below! [Become a Sponsor]
|
|
|
dart pub global activate bloc_toolsAnalyze Dart source code using the official bloc linter to improve code quality and enforce consistency.
Usage
# Lint the current directory
bloc lint .
# Lint multiple files
bloc lint ./path/to/bloc.dart ./path/to/cubit.dartCheck out the official documentation for information.
Create new bloc/cubit components from various templates.
Usage
# Create a CounterBloc
bloc new bloc --name counter
# Create a CounterCubit
bloc new cubit --name counterComponents
| Component | Description |
|---|---|
| bloc | Generate a new Bloc |
| cubit | Generate a new Cubit |
| hydrated_bloc | Generate a new HydratedBloc |
| hydrated_cubit | Generate a new HydratedCubit |
| replay_bloc | Generate a new ReplayBloc |
| replay_cubit | Generate a new ReplayCubit |
Command Line Tools for the Bloc Library.
Usage: bloc <command> [arguments]
Global options:
-h, --help Print this usage information.
--version Print the current version.
Available commands:
lint bloc lint [arguments]
Lint Dart source code.
new bloc new <subcommand> [arguments]
Generate new bloc components.
Run "bloc help <command>" for more information about a command.


