get_hooked 0.5.5 copy "get_hooked: ^0.5.5" to clipboard
get_hooked: ^0.5.5 copied to clipboard

State management with Listenables and Hooks! Inspired by hooks_riverpod and get_it.

0.5.5 #

  • ClippedDecoration bugfix

0.5.4 #

  • Improve RefLayout performance: layoutRect only sets parentUsesSize when the parent queried the child's size
  • Document that each RefLayout child should be laid out once

0.5.3 #

  • Add isRepaintBoundary to RefPaint
  • Improve RefAlign performance
  • Ensure that RefPaint is updated properly

0.5.2 #

  • Update RefElement / compute elements so they correctly compile for web (DDC/dart2js)
  • Fix RefElement unmount cleanup so all subscriptions are cleared
  • Update RefPaint so it can subscribe to listenables after the first paint

0.5.1 #

  • Remove a few unused files
  • Also just a sanity check since I'm not 100% sure 0.5.0 was published correctly

0.5.0 #

  • Replace ScopedGet with ListenablePlaceholder (lenient + strict modes)
  • New widgets: RefAspectRatio, RefShaderMask
  • VsyncDouble.toggler / GetVsyncDouble.toggler for simple bool-driven animations
  • Fix ref.watch subscriptions after hot reload / reassemble (animations no longer freeze)
  • Fix RefLayout hit-testing so gesture localPosition accounts for paint offsets
  • Small GetScope / VsyncDouble behavior cleanups

0.4.0 #

  • Rewrote many (most?) of the APIs
    • I thought about maybe getting an agent to hallucinate a detailed list here, but it probably wouldn't be helpful

0.3.0 #

  • Add disclaimer to README :)
  • Decided that RenderHookElement is too convoluted :)
    • API has been reworked into RefPaint
  • A bunch of benchmarking!
  • RenderGet: a flexible, super-performant render object widget
  • Remove "arbitrary context" vsync mode
  • Migrate AsyncNotifier to riverpod's AsyncValue class
  • Add ComputeRef / ComputedNotifier

0.2.2 #

  • Small optimization for RenderHookElement: no longer performs a redundant equality check for Ref.watch() calls
    • The _ValueListenableHook class has been factored out, for the same reason.

0.2.1 #

  • Lots of documentation added!
  • Introduced a ScopedGet API, for objects that should only be accessed via scoping.
  • Tweaked RenderHookElement to properly respond to Hot Reload.
  • Fixed a pinned dependency since pub.flutter-io.cn was mad :(

0.2.0 #

  • RenderHookElement
    • A new Hook class that allows re-rendering widgets while skipping the build phase entirely!
    • 2 widgets implemented so far:
      • HookDecoration, similar to DecoratedBox but can render with a Clip behavior
      • HookPaint, a variation of CustomPaint that doesn't require an additional class declaration
  • Fixed various bugs I'd previously introduced…
    now I just need to add a bunch of missing documentation :)

0.1.0 #

  • Scoping!
    • It bothered me to just not have this feature :)
    • Plus, now the Ref class is actually more than just a namespace!
  • In-house hooks!
    • New API needs 1 class declaration instead of 2
    • No need for list equality, thanks to Record types!
  • Proxies!
    • Multiple values can be combined into a single Get object…
    • and multiple values can be combined using a Ref.select() hook.
  • Almost certainly introduced one or more bugs, plus there are many Hooks that I have yet to add :)

0.0.2 #

  • Grinding out those pub points!
    • Fix a syntax error (AnimationController.repeat doesn't have a count param in stable yet)
    • Make pubspec description >= 60 chars
    • The fancy images weren't showing up… not sure if it's a security thing or if it was the syntax I used, but regardless I decided to split the README into a "GitHub-optimized version" and a "pub.flutter-io.cn version"

0.0.1 #

  • Initial release!
  • Introduce several cool new APIs:
    • Get
    • Use
    • Vsync
    • AsyncNotifier
    • ProxyNotifier
    • ValueAnimation
  • …and other new APIs which aren't quite as cool.
0
likes
150
points
307
downloads

Documentation

API reference

Publisher

verified publisherno-tolls.dev

Weekly Downloads

State management with Listenables and Hooks! Inspired by hooks_riverpod and get_it.

Homepage
Repository (GitHub)
View/report issues

Topics

#flutter #animation #state-management

License

MIT (license)

Dependencies

collection, collection_notifiers, flutter, meta

More

Packages that depend on get_hooked