bloc_tools 0.1.0-dev.18 copy "bloc_tools: ^0.1.0-dev.18" to clipboard
bloc_tools: ^0.1.0-dev.18 copied to clipboard

Tools for building applications using the bloc state management library.

Bloc Tools

Pub build codecov Star on Github Flutter Website Awesome Flutter Flutter Samples License: MIT Discord Bloc Library


Tools for building applications using the bloc state management library.

Sponsors #

Our top sponsors are shown below! [Become a Sponsor]


Installing #

dart pub global activate bloc_tools

Commands #

$ bloc lint [files...] #

Analyze 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.dart

Check out the official documentation for information.

$ bloc new [component] #

Create new bloc/cubit components from various templates.

Usage

# Create a CounterBloc
bloc new bloc --name counter

# Create a CounterCubit
bloc new cubit --name counter

Components

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

Usage #

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.
24
likes
0
points
5.52k
downloads

Publisher

verified publisherbloclibrary.dev

Weekly Downloads

Tools for building applications using the bloc state management library.

Homepage
Repository (GitHub)
View/report issues

Topics

#bloc #state-management

Documentation

Documentation

Funding

Consider supporting this project:

github.com

License

unknown (license)

Dependencies

args, bloc_lint, lsp_server_ce, mason, path, pub_updater

More

Packages that depend on bloc_tools