Flutter Gems is a curated list of 4900+ useful Dart & Flutter packages that are categorized based on functionality.
Top Flutter Hooks packages
Last updated: May 20, 2023
Hooks were a concept introduced in React framework that lets you use state and other React features without writing a class.
It has been also implemented in Flutter and allows you to split one component into smaller functions based on what pieces of state you need. For example, instead of having a component with a username and password state, you can have a useUsername() hook and a usePassword() hook.
Hooks also allow you to reuse stateful logic between components. For example, if you have a useFetch() hook that fetches data from an API, you can use it in any component without having to duplicate the code.
Hooks are a great way to improve your code reusability and make your components more readable. The complete list of Flutter Hooks implementation packages is provided below.
flutter_hooks
Null safety 👍 1.7K
Maintenance Status: Good
A flutter implementation of React hooks. It adds a new kind of widget with enhanced code reuse.
hooks_riverpod
Null safety 👍 638
Maintenance Status: Good
A simple way to access state from anywhere in your application while robust and testable.
stacked_hooks
Null safety 👍 62
Maintenance Status: Good
Classes that help you make use of hooks when using the stacked package
hooked_bloc
Null safety 👍 61
Maintenance Status: Good
Flutter package that simplifies injection and usage of Bloc/Cubit.
flutterlifecyclehooks
Null safety 👍 28
Maintenance Status: Good
A flutter package that let you easily add hooks for application lifecycle state
flutter_use_sensors
Null safety 👍 1
Maintenance Status: Good
Collection of Flutter Hooks for Sensors.
flutter_use_network_state
Null safety 👍 1
Maintenance Status: Good
Collection of Flutter Hooks for Network State.
flutter_use_audio
Null safety 👍 1
Maintenance Status: Good
Collection of Flutter Hooks for Audio.
flutter_use_video
Null safety 👍 0
Maintenance Status: Good
Collection of Flutter Hooks for Video.
flutter_use_geolocation
Null safety 👍 0
Maintenance Status: Good
Collection of Flutter Hooks for Geolocation.
flutter_use_battery
Null safety 👍 0
Maintenance Status: Good
Collection of Flutter Hooks for Battery.
reactives
Null safety 👍 36
Maintenance Status: Average
A new way to extract/group/reuse common logic of StatefulWidget. Think of them like React hooks but for and of flutter.
flutter_hooks_bloc
Null safety 👍 30
Maintenance Status: Average
A flutter_bloc reimplementation based on flutter_hooks with the same API.