분류, 패키지 및 저장소 검색

패키지 상세v9.0.0

angular_bloc

BLoC(Business Logic Component) 디자인 패턴을 쉽게 구현할 수 있도록 도와주는 Angular 컴포넌트입니다. bloc 상태 관리 패키지와 함께 사용하도록 설계되었습니다.

Web
30일 다운로드
587
좋아요
39
Pub 점수
140

패키지 설치

flutter pub add angular_bloc

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Angular Bloc은 BLoC(Business Logic Component) 디자인 패턴의 구현을 간소화하기 위해 Angular 스타일의 컴포넌트를 제공하는 Flutter 패키지입니다. bloc 상태 관리 라이브러리와 원활하게 통합되어 웹 애플리케이션에서 반응형이고 예측 가능한 상태 처리를 가능하게 합니다. 이 패키지는 Angular 유사한 문법에 맞춰진 지시문과 유틸리티를 제공하여 복잡한 상태 로직을 체계적으로 관리할 수 있도록 도와줍니다. 웹 개발 전용으로 설계되어 코드 정리와 테스트 가능성도 향상시킵니다.

사용 사례

  • 상태 관리로 반응형 웹 UI 만들기
  • 비즈니스 로직과 UI 간의 명확한 분리 구현
  • 확장 가능한 상태 기반 애플리케이션 만들기
  • 비동기 데이터 스트림을 효율적으로 관리하기
  • 기존의 Angular 스타일 워크플로우와의 통합

주요 기능

  • BLoC 통합을 위한 Angular 스타일 지시문
  • 스트림을 사용한 반응형 상태 처리
  • bloc 패키지와의 원활한 호환성
  • 비동기 및 이벤트 기반 상태 업데이트 지원
  • 컴포넌트용 내장 라이프사이클 관리

적합한 대상

  • Angular 패턴에 익숙한 개발자
  • 강력한 상태 관리가 필요한 웹 애플리케이션
  • 상태 로직에 bloc 패키지를 사용하는 팀
  • 테스트 가능성과 유지보수성을 강조하는 프로젝트
  • 복잡한 사용자 상호작용을 가진 애플리케이션

고려 사항

  • 주로 웹 플랫폼용으로 설계됨
  • bloc 패턴에 대한 이해가 필요합니다
  • 웹 컨텍스트 외부에서는 활용도가 제한됨
  • 간단한 앱에 부담을 줄 수 있음
  • 핵심 기능을 위해 외부의 bloc 패키지에 의존합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Bloc

build codecov Star on Github style: bloc lint Flutter Website Awesome Flutter Flutter Samples License: MIT Discord Bloc Library


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

Package Pub
angular_bloc pub package
bloc pub package
bloc_concurrency pub package
bloc_lint pub package
bloc_test pub package
bloc_tools pub package
flutter_bloc pub package
hydrated_bloc pub package
replay_bloc pub 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 separate presentation from business logic, facilitating testability and reusability.

Documentation

Migration

Examples

Dart
  • Counter - an example of how to create a CounterBloc (pure dart).
Flutter
  • Counter - an example of how to create a CounterBloc to implement the classic Flutter Counter app.
  • Form Validation - an example of how to use the bloc and flutter_bloc packages to implement form validation.
  • Bloc with Stream - an example of how to hook up a bloc to a Stream and update the UI in response to data from the Stream.
  • Complex List - an example of how to manage a list of items and asynchronously delete items one at a time using bloc and flutter_bloc.
  • Infinite List - an example of how to use the bloc and flutter_bloc packages to implement an infinite scrolling list.
  • Login Flow - an example of how to use the bloc and flutter_bloc packages to implement a Login Flow.
  • Firebase Login - an example of how to use the bloc and flutter_bloc packages to implement login via Firebase.
  • Github Search - an example of how to create a Github Search Application using the bloc and flutter_bloc packages.
  • Weather - an example of how to create a Weather Application using the bloc and flutter_bloc packages. The app uses a RefreshIndicator to implement "pull-to-refresh" as well as dynamic theming.
  • Todos - an example of how to create a Todos Application using the bloc and flutter_bloc packages.
  • Timer - an example of how to create a Timer using the bloc and flutter_bloc packages.
  • Shopping Cart - an example of how to create a Shopping Cart Application using the bloc and flutter_bloc packages based on flutter samples.
  • Dynamic Form - an example of how to use the bloc and flutter_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 the bloc and flutter_bloc packages.
  • Bloc Concurrency Visualizer - an example of visualizing the various bloc_concurrency transformers.
  • Fluttersaurus - an example of how to use the bloc and flutter_bloc packages to create a thesaurus app -- made for Bytconf Flutter 2020.
  • I/O Photo Booth - an example of how to use the bloc and flutter_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 the bloc and flutter_bloc packages to create a pinball web app -- made for Google I/O 2022.
  • I/O Holobooth - an example of how to use the bloc and flutter_bloc packages to create a virtual photobooth experience -- made for Flutter Forward.
  • I/O Flip - an example of how to use the bloc, flutter_bloc, and flame_bloc packages to create a card game -- made for Google I/O 2023.
Web
  • Counter - an example of how to use a CounterBloc in an AngularDart app.
  • Github Search - an example of how to create a Github Search Application using the bloc and angular_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

카테고리

의존성

의존성 목록 2 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.