Skip to content

Panimulang Hakbang

Packages

Ang ecosystem ng bloc ay binubuo ng maraming mga package na nakalista sa ibaba:

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

Paggamit

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

Imports

Ngayong na-install na natin ang bloc, maaari tayong gumawa ng main.dart at i-import ang gagamiting bloc na package.

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