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
144 stars 66 forks source link

Feature: enabled/disabled state #55

Closed KabaDH closed 4 months ago

KabaDH commented 8 months ago

This PR is a preview and is not yet ready for production.

This PR introduces a new parameter "enabled" for all CustomDropdown constructors. Setting this parameter to "false" you set the "disabled" state. In the disabled state you can not open the dropdown. Disabled state has its own decoration (disabledDecoration). Disabled state is safe to use with empty input options data.

As a minor feature, this PR introduces parameter "closeDropDownOnClearFilterSearch". Setting this parameter to "true" will cause to close the dropdown upon clicking "Clear filter" cross in any CustomDropdown constructor with search filter.

AbdullahChauhan commented 4 months ago

Hey @KabaDH Thanks much for the contribution. 😊 I'm start reviewing this. Will merge soon if all good!