salim-lachdhaf / searchable_dropdown

Simple and robust Dropdown with item search feature, making it possible to use an offline item list or filtering URL for easy customization.
MIT License
326 stars 316 forks source link

I think you can add text in validationWidgetBuilder as we can change th OK test of ElevatedButton #615

Closed mazab99 closed 4 months ago

mazab99 commented 6 months ago

and also add function

KaiExa commented 6 months ago

Can try edit here

validationWidgetBuilder: (context, items) { return ElevatedButton( onPressed: () { _popupCustomValidationKey.currentState?.popupOnValidate(); }, child: Text('TEST'), ); },

Can refer by the example of the pub dev of this package and also to remind to change the type from int to your type required

salim-lachdhaf commented 4 months ago

here an example : https://github.com/salim-lachdhaf/searchable_dropdown/blob/0db798a07a222435950c024abdbf8f8926798211/example/lib/main.dart#L107