AbdullahChauhan / custom-dropdown

Custom dropdown widget allows to add highly customizable dropdown widget in your projects. Features includes Search on list data, Network search, Multi-selection and many more.
https://pub.dev/packages/animated_custom_dropdown
BSD 3-Clause "New" or "Revised" License
158 stars 73 forks source link

How use error text #28

Closed kadirgulluoglu closed 11 months ago

kadirgulluoglu commented 1 year ago

I want to send an alert if the user has not selected any item, how can I do that?

AbdullahChauhan commented 11 months ago

Hey @kadirgulluoglu You can achieve this behaviour under form validation. Using the validator property, you can check if the dropdown value is null. If so, show the alert to the user.