changeif 1.0.0 copy "changeif: ^1.0.0" to clipboard
changeif: ^1.0.0 copied to clipboard

Flutter Hook's useMemoized as dot notation.

changeif #

This package is design for Niku and Flutter Hook.

Flutter Hook's useMemoized as dot notation.

Rebuild widget if the provided value is change (only work with HookWidget and State).

Requirement:

  • Niku
  • Flutter Hook

Example usage

class WithChangeIf extends HookWidget {
  build(context) {
    final counter = useState(0);

    return NikuColumn([
      NikuText("Will not be rebuild ${counter.value}").changeIf(),
      NikuButton(Text("Counter: ${counter.value}"))
        ..onPressed(() {
          counter.value++;
        }),
    ]);
  }
}
0
likes
100
pub points
0%
popularity

Publisher

unverified uploader

Flutter Hook's useMemoized as dot notation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter, flutter_hooks, niku

More

Packages that depend on changeif