-
Notifications
You must be signed in to change notification settings - Fork 69
Missing features #5
Comments
I can provide them if you like |
If you need to listen for text changes, I think the best way is to use a TextEditingController and call Feel free to implement the other two, but close/back button should probably be an option you can set in the constructor (it should default to back just for backwards compatibility). |
Sounds good - I will provide a pull request asap |
Just to clarify, the TextEditingController can be passed as an argument to the constructor of SearchBar currently (as |
Do you mind if I create a statefull widget out of it because the clear button has a state and is only shown when the user entered text. I did see the TextEditController, I agree with ur last statement. The function of the back button stays the same. All that should be compatible with the old paradigm. |
I think I dont need no statefull widget - forgot that setState is required |
* Added clear button to clear the search term * Added configuration to hide clear button showClearTextButton * Added bool hideSearchBoxDevider * Added popParentOnBackButton to navigate back on back buttonnot just out of the SearchBar
@ride4sun here is what I did to get those feature. https://gist.github.com/AppleEducate/932e9426b53468882717cf0f1b463a72 |
@AppleEducate thanks! I'll look into adding it into master sometime in the next few days. Personally, I would recommend setting Is this module really super useful though since Flutter has a first-class search widget now? |
@ArcticZeroo I was not aware of the first class widget? I have been using this custom class since flutter beta 2. I had to pass the onChanged because I am calling an api for search results. are you talking about material_search ? I also use this custom search I built: |
@AppleEducate here's some info on the first class widget (I don't see any docs for it): Seems a bit over-involved to me, but it's not third party I suppose 🤷♂️ edit: It looks like this isn't quite the same as the one this third party module does. The first class widget is more of a |
I think thats why I didn't know about it. I usually go off the docs. Thanks! ill check it out 👍🏻 |
I would like to see these features:
For user it appears like that navigation never change.
The text was updated successfully, but these errors were encountered: