hook_state 0.4.2 copy "hook_state: ^0.4.2" to clipboard
hook_state: ^0.4.2 copied to clipboard

A Flutter package inspired by React hooks and the `flutter_hooks` package. It offers a similar hooks experience but without the need for additional widgets, allowing you to use just `StatefulWidget` t [...]

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add hook_state

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  hook_state: ^0.4.2

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:hook_state/hook_state.dart';
9
likes
140
pub points
55%
popularity

Publisher

verified publisherflutterando.com.br

A Flutter package inspired by React hooks and the `flutter_hooks` package. It offers a similar hooks experience but without the need for additional widgets, allowing you to use just `StatefulWidget` to manage complex states declaratively and reactively.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on hook_state