srtraj / dropdown_textfield

custom dropdown
MIT License
8 stars 49 forks source link

Hint text and button 'ok' #2

Closed valientegaston closed 2 years ago

valientegaston commented 2 years ago

Hi! Excellent widget! Thank you! Can I change hint (Select Item) text?
Is it possible to customize color and text of 'OK' button in multiselect?.

srtraj commented 2 years ago

Hi! Excellent widget! Thank you! Can I change hint (Select Item) text? Is it possible to customize color and text of 'OK' button in multiselect?.

Thank you Valientegaston!,

hint text - you can change hint text by using textFieldDecoration as below

DropDownTextField( dropDownList: [ DropDownValueModel(name: 'name1', value: "value1"), DropDownValueModel(name: 'name2', value: "value2"), DropDownValueModel(name: 'name3', value: "value3"), ], **textFieldDecoration: InputDecoration(hintText: "custom hint text"),** ),

'OK' button in multiselect - as of now you can't customize multiselect 'OK' button but i have noted this point, will definitely add in next version.

valientegaston commented 2 years ago

Thank you!

srtraj commented 2 years ago

Thank you!

FYI..

new version of code published Now you can change button text, color and textstyle