AhmedLSayed9 / dropdown_button2

Flutter's core Dropdown Button widget with steady dropdown menu and many other features.
https://pub.dev/packages/dropdown_button2
MIT License
264 stars 122 forks source link

Being able to set the errorText #289

Open skywa04885 opened 3 months ago

skywa04885 commented 3 months ago

For my current application I need to be able to specify the errorText for a specific field, without resulting in the usage of the built in forms feature. I perform my validation in BLOCs and cannot rely on built-in validation. I need to be able to specify the errorText to the dropdown button, however this currently is not possible. If this could be added, I'd be very grateful.

mainser commented 1 month ago

The same thing happens to me, I can't validate the dropdown because I use Formz and the DropdownButtonFormField2 doesn't have the errorText option in the decoration.