You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I wanted to use both functional widgets and hooks to build flutter apps, but as i tried using the useState() hook it gave me the error: Hooks should only be called within the build method of a widget.
Even tho i did add the @hwidget.
To Reproduce
Just run flutter create <some_name> and then paste the following small code:
Thank you for answering
I am also using functional_widget package with the hook package, and when i renamed homePage to HomePage, functional_widget package gave out the following error: The function name must start with a lowercase character.
Is there some way to disable this forcing of having to start with a lowercase character?
Or is there a specific way for using both functional_widget and flutter hooks at the same time?
Describe the bug
I wanted to use both functional widgets and hooks to build flutter apps, but as i tried using the useState() hook it gave me the error: Hooks should only be called within the build method of a widget.
Even tho i did add the
@hwidget
.To Reproduce
Just run
flutter create <some_name>
and then paste the following small code:Expected behavior
I expected the code to compile and run.
The text was updated successfully, but these errors were encountered: