Přeskočit na obsah

Getting Started

Tento obsah zatím není dostupný ve vašem jazyce.

Packages

The bloc ecosystem consists of multiple packages listed below:

PackageDescriptionLink
angular_blocAngularDart Componentspub package
blocCore Dart APIspub package
bloc_concurrencyEvent Transformerspub package
bloc_testTesting APIspub package
flutter_blocFlutter Widgetspub package
hydrated_blocCaching/Persistence Supportpub package
replay_blocUndo/Redo Supportpub package

Installation

Terminal window
# Add bloc to your project.
dart pub add bloc

Imports

Now that we have successfully installed bloc, we can create our main.dart and import the respective bloc package.

main.dart
import 'package:bloc/bloc.dart';