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
When running stacked generate with a form consisting of only dropdown fields, the generated form.dart contains missing methods.
The method '_updateFormData' isn't defined for the type $View
The method 'validateForm' isn't defined for the type 'FormStateHelper'
If you add these methods back from another generated form with some text fields, the methods are resolved. I think the current code must expect at least one TEXT form field before it adds the _updateFormData and validateForm methods in them.
We kind of half removed the dropdown form functionality but I think this can be fixed for now by adding a FormTextField in there for now even if you don't use it.
Let me know if that workaround works, will add this to the list of fixes to make.
Hey @FilledStacks, same issue and fix with only FormDateField 😇
Any particular reason why you removed those features to keep only FormTextField? Any incompatibilities or related issues?
Describe the bug
When running stacked generate with a form consisting of only dropdown fields, the generated form.dart contains missing methods.
If you add these methods back from another generated form with some text fields, the methods are resolved. I think the current code must expect at least one TEXT form field before it adds the _updateFormData and validateForm methods in them.
FYI: My annotation definitions are:
What operating system do you use?
macOS
Information about the installed tooling
Steps to reproduce the issue
Expected behavior
No errors in generated file and methods present
Screenshots
Additional Context
No response
The text was updated successfully, but these errors were encountered: