flutter_smart_select icon indicating copy to clipboard operation
flutter_smart_select copied to clipboard

modalFilterBuilder for custom search field?

Open arif2k17-hot opened this issue 5 years ago • 3 comments

I need to use custom TextField for filtering. I didn't found any example of doing that. Is there any way of using custom search field?

arif2k17-hot avatar Dec 29 '20 07:12 arif2k17-hot

You should use modalFilterBuilder

return SmartSelect.single(
    title: 'Use modalFilterBuilder',
    value: value,
    choiceItems: options,

    modalFilter: true,
    modalFilterBuilder: (ctx, cont) => TextField(cursorColor: Colors.red,),
    
    onChange: (state){},
);

paul-mais avatar Dec 31 '20 15:12 paul-mais

But you know if I can use this modalFilter to make some request in my api to return values to my screen?

Katekko avatar Jan 15 '21 12:01 Katekko

I released https://pub.dev/packages/flutter_awesome_select with fixed null safety. Could you check that everything works for you?

vasilich6107 avatar Nov 12 '21 23:11 vasilich6107

Hi everyone,

I'm really sorry for not maintaining the smart_select package in a long time. It's been a great project, but it's become too difficult for me to maintain, especially since I've been going through a tough time for the past few years.

In its place, I've released a new package called choice. The combination to smart_select and chips_choice with cleaner, more flexible, and composable API for creating inline or prompted choice widgets with single or multiple selection.

I hope you'll check out choice. I think you'll find it to be a great replacement for smart_select.

Thanks for your understanding.

davigmacode avatar Aug 26 '23 11:08 davigmacode