Really good tutorial, very clear. I'll just add that in newer versions of FF you will get an error if you make any of the arguments nullable so it's worth getting rid of that straight away. I'll also say if you want to search across multiple fields, use the Combine Text action to pass them all across to textSearchIn in one go
Excellent Video respected gentleman, I've been searching for this thing for a lot of time, but you gave me the answer. Thanks a lot and congratulations!!!
Elegant and simple solution, even beats the built in Simple Search! Thx very much! The only issue I'm having is that when using GridView it doesn't adjust the contents properly.
Hı, thank you for video! i have one question, how return Empty result text if there is not any appropriate to query? I try with empty list widget built in listview, but it didn't give result
Thanks for sharing this! Is there a way to use a filter on a list thats not using Firebase? (My App must work offline, thats why..) Like apply the "textSearchIn" to the widget Name or a local state variable? Thank you.
Thanks a lot. The video is perfectly made and very clear. A question for a beginner: what's different beetwin this method filter and using ALGOIA search services? THANKS FOR THIS VIDEO
Just to say that this custom function code fails as of v4 (on 19th Nov 23). The AI helped correct it though to include the required null checking: // search for a string in another string if (textSearchFor == null || textSearchIn == null) { return false; } return textSearchIn.toLowerCase().contains(textSearchFor.toLowerCase());
This only works for me if I tap inside the ListView before searching, and also hit enter after typing in the search text. Update on text change is definitely on though. It should be passive but it's not. Any ideas what I might be doing wrong? It's as if flutterflow doesn't bother with the visibility conditional until you click into the widget doing the query.
I at least got around the fact that it would only update the query after clicking into the listView. I also toggled on the textField attribute 'update page on focus change' and turned off autofocus. This means users have to click on the textfield in order to type in the first place, and that triggers the update on focus change. Basically update on text change doesn't work. I added a 'send' iconButton next to the textField that does nothing, but if users don't realize they have to hit enter they can hit that and since it changes the focus of the field it also updates the page. If anyone else has a better work around please let me know!
I know this is response comes late, but what I did is for the textSearchIn use the combine text feature and just added the different fields I am looking to search
@@elmehdibelyasmine942 Just follow the guide in the video and use the native combine text feature within FF to add all the fields you'd like to search to the textSearchIn input.
Thank you for your tutorial. Awsesome. However I have a question concerning adding a second argument like textSearchIn2 because I have two fields to search in : title and subtitle because they are separated collections but in same container. I put another line before the return boolean function and that take in account one argument but not both. How can I fix that ? thank you
OMG this is exactly what I was looking for! I checked out your website and couldn't find any contact info for you, but do you do consultations? Is there any way to book a few hours with you to review my app in FlutterFlow?
Hi @amine - it's possible. You can do it using conditional visibility on the list item as long as you've got a numeric value to compare to the slider. Otherwise you'd need to create a function (like in this example) where you're comparing the value of the list slider to a value in your list view item.
Hello, I have been trying to follow this tutorial, but the search filter only seems to update once I move to another screen and come back to the main screen (doesn't update in real time, only after switching screens). What should I try to fix this?
This is really good and very helpful! Your video is based on Document data, we need this same functionality when we use API, somehow that VIEW FROM SOURCE doesn't show up when working with API data, which is crucial. Is that on the way or any specific way to achieve this with API data, please guide or share a tutorial around that.
Amazing video. Probably the best out there on custom functions in FF! Thanks!
Thank you for this! This worked so so well even after 2+ years!
Really good tutorial, very clear. I'll just add that in newer versions of FF you will get an error if you make any of the arguments nullable so it's worth getting rid of that straight away. I'll also say if you want to search across multiple fields, use the Combine Text action to pass them all across to textSearchIn in one go
this one comment saved me…. and the ‘combine text’ MAGIC 🎉
Thank you for this! :)
Congratulations on the content, it helped me on the other side of the world. I live in Manaus, capital of Amazonas in Brazil.
So this Man came, upload one very useful tutorial and disappeared
Yea
There must be a meme for that ;)
Excellent Video respected gentleman, I've been searching for this thing for a lot of time, but you gave me the answer. Thanks a lot and congratulations!!!
Thank you. What a simple and elegant solution.
Very well explained Jay ! 👏 thanks 🙌
Thank you! that's exactly what I was looking for, you were so helpful 👍
Great job sir. Thank you for the help.
Elegant and simple solution, even beats the built in Simple Search! Thx very much! The only issue I'm having is that when using GridView it doesn't adjust the contents properly.
yes same as me
@@ahmedyehia4846 I ended up having to use a "wrap" widget
@@IspyrGameDev yes , but it's look not good
Dude, you are the best.
Straight to the point, thank you good sir.
great explain, please upload more flutterflow videos. Thanks You!
Thank you so much for this tutorial.
Thank you very much for your video; How to have a search field that filters results based on two separate fields ?
Did you could use the function textSearchIn?
Thanks bro🤩🤩🤩Working 100%💯💯💯
Excellent. I've implemented without problem but I've like to search by 2 fields, like name and lastname, how can I achieve this?
Amazing, so easy actually, thanks!
Hı, thank you for video! i have one question, how return Empty result text if there is not any appropriate to query? I try with empty list widget built in listview, but it didn't give result
A very pleasant and efficace solution ! Bravo !! Do you how we could count the visible elements ? Thanks !
Thanks for sharing this! Is there a way to use a filter on a list thats not using Firebase? (My App must work offline, thats why..) Like apply the "textSearchIn" to the widget Name or a local state variable? Thank you.
Thanks a lot. The video is perfectly made and very clear. A question for a beginner: what's different beetwin this method filter and using ALGOIA search services? THANKS FOR THIS VIDEO
Algolia is very expensive.
Just to say that this custom function code fails as of v4 (on 19th Nov 23). The AI helped correct it though to include the required null checking:
// search for a string in another string
if (textSearchFor == null || textSearchIn == null) {
return false;
}
return textSearchIn.toLowerCase().contains(textSearchFor.toLowerCase());
Thank you so much! I had this problem and had no idea how to fix it!
Thanks
I'm really surprised that this is not natively available in the app. I came from Bubble and it had this feature.
Just saved my life. Thanks😇🥰
Thank you, Jay!
Thanks for this wonder video. I have a doubt though, am i gonna get result if search numbers as well instead of text??
Excelente vídeo, qual api foi usada?
Hi. How might you do this with an external api?
Can you do the same video but connecting to an API?
lovely.. worked like a charm.
This only works for me if I tap inside the ListView before searching, and also hit enter after typing in the search text. Update on text change is definitely on though. It should be passive but it's not. Any ideas what I might be doing wrong? It's as if flutterflow doesn't bother with the visibility conditional until you click into the widget doing the query.
I at least got around the fact that it would only update the query after clicking into the listView. I also toggled on the textField attribute 'update page on focus change' and turned off autofocus. This means users have to click on the textfield in order to type in the first place, and that triggers the update on focus change. Basically update on text change doesn't work. I added a 'send' iconButton next to the textField that does nothing, but if users don't realize they have to hit enter they can hit that and since it changes the focus of the field it also updates the page. If anyone else has a better work around please let me know!
Thank you Jay!
Really helpful....really appriciate it
Thank you for a great video. How could you search across multiple fields?
I know this is response comes late, but what I did is for the textSearchIn use the combine text feature and just added the different fields I am looking to search
@@johnkrueger2604 will you be able to post the snippet or share the code somewhere? ie codebin
@@johnkrueger2604 Can you be able to share what you did ? Thank you very much
@@elmehdibelyasmine942 Just follow the guide in the video and use the native combine text feature within FF to add all the fields you'd like to search to the textSearchIn input.
@@bigdata9605 No code snippet required. Just use the native combine text feature within FF to add all the fields you'd like to search.
Great video. Thanks.
amazing one
super! You saved me some time to think :)
How would you use this filter with flippable cards?
Thank you for your tutorial. Awsesome.
However I have a question concerning adding a second argument like textSearchIn2 because I have two fields to search in : title and subtitle because they are separated collections but in same container.
I put another line before the return boolean function and that take in account one argument but not both. How can I fix that ? thank you
Hi buddy, did you solve two fields search ?
@@juliannick981 unfortunately no ! And you ?
@@juliannick981 easy. Just add more conditions in the visibility logic.
OMG this is exactly what I was looking for! I checked out your website and couldn't find any contact info for you, but do you do consultations? Is there any way to book a few hours with you to review my app in FlutterFlow?
I was looking for this, thank you, I have a question is there away to make a Range Slider in flutterFlow and show the results base on that, thanks.
Hi @amine - it's possible.
You can do it using conditional visibility on the list item as long as you've got a numeric value to compare to the slider. Otherwise you'd need to create a function (like in this example) where you're comparing the value of the list slider to a value in your list view item.
great tutorial. thanks
so helpful💖
when I search for something, it keeps it showing but the the other list items are emptied but they are still there, why is it happening?
Excelente vídeo, justo lo que necesitaba , gracias !!
thank you so much! what a giga chad.
Hello, I have been trying to follow this tutorial, but the search filter only seems to update once I move to another screen and come back to the main screen (doesn't update in real time, only after switching screens). What should I try to fix this?
Sorry, I got it now, I forgot to add the wait delay
Thanks, worked great
Sir. THANK YOU!!
thank you bro, excelent
Perfect! thanks!
This is really good and very helpful! Your video is based on Document data, we need this same functionality when we use API, somehow that VIEW FROM SOURCE doesn't show up when working with API data, which is crucial. Is that on the way or any specific way to achieve this with API data, please guide or share a tutorial around that.
Very good.
It works to me, thankss
Thank you!
thank you !!
Thank you for sharing
good idea
Hello, thank you for this video and your sharing! do you know how to ignore accents? (éèôùëêà) thank you in advance!
THIS VIDEO IS AMAZING YOUR MY FATHER
Thanks alot
Thanks 😍
It says my code has errors even though I copied it exactly
uncheck all the nullable values in function and arguments too.
thanks
muito bom, melhora muito a busca. Parabens
Why are you whispering mate?