Open dankhan-helmet opened 2 months ago
Hey @dankhan-helmet, thanks for filing this issue.
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.
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
With AppGoal defined as:
class AppGoal { static const List all = [
StaticDropdownItem(title: '1st', value: '1'),
StaticDropdownItem(title: '2nd', value: '2'),
StaticDropdownItem(title: '3rd', value: '3'),
];
}