bloc_builder 2.2.2 bloc_builder: ^2.2.2 copied to clipboard
Util to easily create BLoC
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add bloc_builder
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
bloc_builder: ^2.2.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:bloc_builder/base_widget.dart';
import 'package:bloc_builder/index.dart';
import 'package:bloc_builder/widgets/for_bloc_widget.dart';
import 'package:bloc_builder/widgets/match_bloc_widget.dart';
import 'package:bloc_builder/widgets/watch_bloc_widget.dart';
import 'package:bloc_builder/widgets/when_bloc_widget.dart';