FLUTTER ECOSYSTEM

hooked_bloc

Flutter package that simplifies injection and usage of Bloc/Cubit.

Latest version
1.7.0
30-day downloads
4.9K
Likes
94
Pub points
160

Package Overview

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

Overview

Hooked_Bloc is a Flutter package that simplifies the injection and usage of Bloc and Cubit classes by leveraging hooks. It enables developers to access state management logic directly within widgets using concise, reactive syntax, reducing boilerplate and improving code readability. Built for seamless integration with Flutter's modern widget model, it supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux. The package enhances developer productivity by combining the power of Bloc/Cubit with the simplicity of hooks.

Use cases
  • Simplifying state management in complex UIs
  • Reducing boilerplate in Bloc/Cubit usage
  • Enabling reactive widget updates with hooks
  • Streamlining dependency injection for state classes
  • Building scalable Flutter applications
Key features
  • Built-in hook-based access to Bloc/Cubit
  • Minimal boilerplate for state management
  • Seamless integration with Flutter's widget tree
  • Supports all Flutter platforms
  • Clean, readable syntax for state handling
Suitable for
  • Developers using Bloc/Cubit patterns
  • Teams seeking cleaner state management
  • Projects requiring reactive UI updates
  • Flutter apps targeting multiple platforms
  • Developers embracing functional-style widget design
Considerations
  • Requires familiarity with Flutter hooks
  • May not suit very simple state needs
  • Best used in conjunction with other state management practices
  • Not compatible with non-hook-based widget architectures
  • Depends on proper setup of Bloc/Cubit instances
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add hooked_bloc

Categories

Source repository

Related projects

No data available yet.