FLUTTER ECOSYSTEM

flutter_hooks_bloc

A flutter_bloc reimplementation based on flutter_hooks with the same API.

Latest version
0.18.0
30-day downloads
822
Likes
35
Pub points
160

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

flutter_hooks_bloc is a state management solution that reimagines flutter_bloc using Flutter Hooks, offering the same API for developers familiar with flutter_bloc. It leverages the power of hooks to simplify state handling in functional widgets, enabling reactive UIs with minimal boilerplate. Designed for seamless integration, it supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux. This package enhances developer productivity by combining the declarative nature of hooks with the robust state management patterns of bloc.

Use cases
  • Reactive UIs with minimal boilerplate
  • State management in functional widgets
  • Migrating from flutter_bloc to hooks-based architecture
  • Cross-platform app development
  • Simplifying complex state logic
  • Replacing traditional StatefulWidget with functional approaches
Key features
  • Same API as flutter_bloc
  • Built on top of flutter_hooks
  • Minimal boilerplate
  • Cross-platform support
  • Reactive state updates
  • Functional widget compatibility
Suitable for
  • Developers experienced with flutter_bloc
  • Teams adopting hooks-based architecture
  • Projects requiring lightweight state management
  • Functional UI components
  • Apps targeting multiple platforms
  • Those seeking reduced boilerplate in state handling
Considerations
  • Requires familiarity with Flutter Hooks
  • May not suit teams preferring class-based state management
  • Limited documentation compared to flutter_bloc
  • Potential learning curve for new hook users
  • Less mature ecosystem than flutter_bloc
  • Not ideal for very simple state needs
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add flutter_hooks_bloc

Categories

Source repository

Related projects

No data available yet.