We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying few of your packages :) and from what I understand for now it's not possible to use this one with flutter_hook right ?
The idea will be to use flutter_hook to also allow "stateful" widgets define as a function.
So basically instead of:
class Example extends HookWidget { @override Widget build(HookContext context) { finalmyState = context.useState(initialData: 0); return Container(); } }
We'll have :
Widget foo(HookContext context, { int value, int value2 }) { final myState = context.useState(initialData: 0); return Text('${myState.value} $value $value2'); }
We don't gain that much in terms of code, but at least we have the same way to define widget across the project.
The text was updated successfully, but these errors were encountered:
Ok just look at the code and saw it's already done :) just not documented so all good thanks!
Sorry, something went wrong.
Hehe indeed it's done!
No branches or pull requests
I'm trying few of your packages :) and from what I understand for now it's not possible to use this one with flutter_hook right ?
The idea will be to use flutter_hook to also allow "stateful" widgets define as a function.
So basically instead of:
We'll have :
We don't gain that much in terms of code, but at least we have the same way to define widget across the project.
The text was updated successfully, but these errors were encountered: