Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A predictable state management library that helps implement the BLoC design pattern

License

NotificationsYou must be signed in to change notification settings

felangel/bloc

Repository files navigation

Bloc

buildcodecovStar on GithubFlutter WebsiteAwesome FlutterFlutter SamplesLicense: MITDiscordBloc Library


A predictable state management library that helps implement the BLoC design pattern.

PackagePub
blocpub package
bloc_testpub package
bloc_concurrencypub package
bloc_lintpub package
flutter_blocpub package
angular_blocpub package
hydrated_blocpub package
replay_blocpub package

Sponsors

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


Overview

Bloc Architecture

The goal of this library is to make it easy to separatepresentation frombusiness logic, facilitating testability and reusability.

Documentation

Migration

Examples

Dart

  • Counter - an example of how to create aCounterBloc (pure dart).

Flutter

  • Counter - an example of how to create aCounterBloc to implement the classic Flutter Counter app.
  • Form Validation - an example of how to use thebloc andflutter_bloc packages to implement form validation.
  • Bloc with Stream - an example of how to hook up abloc to aStream and update the UI in response to data from theStream.
  • Complex List - an example of how to manage a list of items and asynchronously delete items one at a time usingbloc andflutter_bloc.
  • Infinite List - an example of how to use thebloc andflutter_bloc packages to implement an infinite scrolling list.
  • Login Flow - an example of how to use thebloc andflutter_bloc packages to implement a Login Flow.
  • Firebase Login - an example of how to use thebloc andflutter_bloc packages to implement login via Firebase.
  • Github Search - an example of how to create a Github Search Application using thebloc andflutter_bloc packages.
  • Weather - an example of how to create a Weather Application using thebloc andflutter_bloc packages. The app uses aRefreshIndicator to implement "pull-to-refresh" as well as dynamic theming.
  • Todos - an example of how to create a Todos Application using thebloc andflutter_bloc packages.
  • Timer - an example of how to create a Timer using thebloc andflutter_bloc packages.
  • Shopping Cart - an example of how to create a Shopping Cart Application using thebloc andflutter_bloc packages based onflutter samples.
  • Dynamic Form - an example of how to use thebloc andflutter_bloc packages to implement a dynamic form which pulls data from a repository.
  • Wizard - an example of how to build a multi-step wizard using thebloc andflutter_bloc packages.
  • Fluttersaurus - an example of how to use thebloc andflutter_bloc packages to create a thesaurus app -- made for Bytconf Flutter 2020.
  • I/O Photo Booth - an example of how to use thebloc andflutter_bloc packages to create a virtual photo booth web app -- made for Google I/O 2021.
  • I/O Pinball - an example of how to use thebloc andflutter_bloc packages to create a pinball web app -- made for Google I/O 2022.
  • I/O Holobooth - an example of how to use thebloc andflutter_bloc packages to create a virtual photobooth experience -- made for Flutter Forward.
  • I/O Flip - an example of how to use thebloc,flutter_bloc, andflame_bloc packages to create a card game -- made for Google I/O 2023.

Web

  • Counter - an example of how to use aCounterBloc in an AngularDart app.
  • Github Search - an example of how to create a Github Search Application using thebloc andangular_bloc packages.

Flutter + Web

  • Github Search - an example of how to create a Github Search Application and share code between Flutter and AngularDart.

Articles

Books

  • Flutter Complete Reference - A book about the Dart programming language (version 2.10, with null safety support) and the Flutter framework (version 1.20). It covers the bloc package (version 6.0.3) in all flavors: bloc, flutter_bloc hydrated_bloc, replay_bloc, bloc_test and cubit.

Extensions

  • IntelliJ - extends IntelliJ/Android Studio with support for the Bloc library and provides tools for effectively creating Blocs for both Flutter and AngularDart apps.
  • VSCode - extends VSCode with support for the Bloc library and provides tools for effectively creating Blocs for both Flutter and AngularDart apps.

Community

Learn more at the following links, which have been contributed by the community.

Packages

Video Tutorials

Written Resources

Extensions

Maintainers


[8]ページ先頭

©2009-2025 Movatter.jp