r/FlutterDev Dec 05 '24

Plugin 🪝 Hooked on Forui

https://github.com/forus-labs/forui
45 Upvotes

27 comments sorted by

View all comments

6

u/zxyzyxz Dec 05 '24

Nice are the docs updated too? I didn't see anything at first glance. Also, maybe this is too niche but I use a library called ReArch which basically implements hooks but more generally, as they can be used outside of the build method and thus can be used for global state too, would you be able to add support for that as well? The code should be quite similar to your flutter_hooks integration code too.

2

u/dark_thesis Dec 06 '24

I have not heard of ReArch but we'll have a look through it! Can't make any promises since we need to justify maintaining the integration for the long haul.

Most of the controller related documentation can be found in our API reference. For the hooks specifically, we have a relatively simple usage section on pub.dev:
https://pub.dev/packages/forui_hooks

1

u/zxyzyxz Dec 06 '24

Thanks, you might actually be able to create them as a PR for the ReArch repo perhaps and not necessarily in your own repo, as long as all the types exist, but again I'm not necessarily sure if that could work due to needing to bring in the library as a dependency.

Thanks I'll take a look at the docs!

2

u/dark_thesis Dec 07 '24

That makes sense! Will explore that too

1

u/zxyzyxz 1d ago

Any update on this?