Skip to main content

bloc_template_generator 0.1.0 copy "bloc_template_generator: ^0.1.0" to clipboard
bloc_template_generator: ^0.1.0 copied to clipboard

A command-line tool to generate BLoC boiler-plate code with Dio network calls.

example/example.md

Example #

bloc_template_generator Auth --states=authenticated,unauthenticated --events=login,logout --url=https://api.example.com

This will generate the following structure inside the lib directory:

lib/
 ├── bloc/
 │   ├── auth_bloc/
 │   │   ├── auth_bloc.dart
 │   │   ├── auth_event.dart
 │   │   ├── auth_state.dart
 ├── data/
 │   ├── data_provider/
 │   │   ├── auth_data_provider.dart
 │   ├── repository/
 │   │   ├── auth_repository.dart
 ├── presentation/
 │   ├── screens/
 │   │   ├── auth_example_screen.dart
2
likes
140
points
62
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A command-line tool to generate BLoC boiler-plate code with Dio network calls.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

More

Packages that depend on bloc_template_generator