Browse 4900+ useful Dart & Flutter packages that are neatly categorized!
Top Flutter Hooks packages
Last updated: February 1, 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.
Null safety 👍 1.5K
A flutter implementation of React hooks. It adds a new kind of widget with enhanced code reuse.
Null safety 👍 582
A simple way to access state from anywhere in your application while robust and testable.
Null safety 👍 62
Classes that help you make use of hooks when using the stacked package
Null safety 👍 55
Flutter package that simplifies injection and usage of Bloc/Cubit.
Null safety 👍 35
A new way to extract/group/reuse common logic of StatefulWidget. Think of them like React hooks but for and of flutter.
Null safety 👍 28
A flutter_bloc reimplementation based on flutter_hooks with the same API.
Null safety 👍 26
A flutter package that let you easily add hooks for application lifecycle state