Flutter Gems

Browse 4900+ useful Dart & Flutter packages that are neatly categorized!

Subscribe Medium LinkedIn Twitter

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.


flutter_hooks
Null safety 👍 1.5K

A flutter implementation of React hooks. It adds a new kind of widget with enhanced code reuse.

hooks_riverpod
Null safety 👍 582

A simple way to access state from anywhere in your application while robust and testable.

stacked_hooks
Null safety 👍 62

Classes that help you make use of hooks when using the stacked package

hooked_bloc
Null safety 👍 55

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

flutter_use
Null safety 👍 36

Collection of Flutter Hooks.

reactives
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.

flutter_hooks_bloc
Null safety 👍 28

A flutter_bloc reimplementation based on flutter_hooks with the same API.

flutterlifecyclehooks
Null safety 👍 26

A flutter package that let you easily add hooks for application lifecycle state

flutter_use_sensors
Null safety 👍 1

Collection of Flutter Hooks for Sensors.

flutter_use_network_state
Null safety 👍 1

Collection of Flutter Hooks for Network State.

flutter_use_audio
Null safety 👍 1

Collection of Flutter Hooks for Audio.

flutter_use_video
Null safety 👍 0

Collection of Flutter Hooks for Video.

flutter_use_geolocation
Null safety 👍 0

Collection of Flutter Hooks for Geolocation.

flutter_use_battery
Null safety 👍 0

Collection of Flutter Hooks for Battery.