hook_state 0.4.2 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';