Flutter Gems

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

Twitter Subscribe Medium LinkedIn

Top Flutter Hooks packages

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.4K

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

hooks_riverpod
Null safety 👍 490

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

stacked_hooks
Null safety 👍 59

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

hooked_bloc
Null safety 👍 41

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

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_use
Null safety 👍 29

Collection of Flutter Hooks.

flutter_hooks_bloc
Null safety 👍 27

A flutter_bloc reimplementation based on flutter_hooks with the same API.

flutterlifecyclehooks
Null safety 👍 23

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

flutter_use_sensors
Null safety 👍 1

Collection of Flutter Hooks.

flutter_use_network_state
Null safety 👍 1

Collection of Flutter Hooks.

flutter_use_audio
Null safety 👍 1

Collection of Flutter Hooks.

flutter_use_video
Null safety 👍 0

Collection of Flutter Hooks.

flutter_use_geolocation
Null safety 👍 0

Collection of Flutter Hooks.

flutter_use_battery
Null safety 👍 0

Collection of Flutter Hooks.