flutter-autocomplete-textfield icon indicating copy to clipboard operation
flutter-autocomplete-textfield copied to clipboard

suggestions comes from server?

Open aliazxs opened this issue 6 years ago • 8 comments

your plugin is awesome man Thank you,

what if my suggestions comes from server so i had to display what the server returns?

aliazxs avatar Aug 07 '19 14:08 aliazxs

I suggest you to check BLoC Pattern. Here some helpful links. Those are explanations with examples made by Didier Boelens :

The basics with streams and BLoC pattern (Reactive Programming - Streams - BLoC) A bit deeper and practical exemple (Reactive Programming - Streams - BLoC - Practical Use Cases) A comparison between BLoC, ScopedModel and Redux (BLoC - ScopedModel - Redux - Comparison)

It helped me a lot and I hope you will find what you want too.

AmazingBite avatar Aug 08 '19 07:08 AmazingBite

I am looking for something similar. It would be great if there is a feature that also allows you to make API requests.

pyjavo avatar Aug 23 '19 00:08 pyjavo

Same here. I would be great if we can update the suggestion list after received the response from api request

codetinker avatar Oct 20 '19 11:10 codetinker

Anything new here ?

Wizzel1 avatar Apr 21 '20 19:04 Wizzel1

Hi @Wizzel1,

Anything new here ?

Yes, there are always new great things are created.

If you assign a key object to your AutoCompleteTextField / SimpleAutoCompleteTextField widget, you can call something like this on your key whenever you want to update Suggestions ===>

key.currentState.updateSuggestions(List items).

I hope this help.

nabil-hfz avatar May 07 '20 15:05 nabil-hfz

@nabil-hfz thanks !

Wizzel1 avatar May 11 '20 13:05 Wizzel1

Hi @Wizzel1,

Anything new here ?

Yes, there are always new great things are created.

If you assign a key object to your AutoCompleteTextField / SimpleAutoCompleteTextField widget, you can call something like this on your key whenever you want to update Suggestions ===>

key.currentState.updateSuggestions(List items).

I hope this help.

After I updateSuggestions() the overlay pops up automatically without clicking the field. How can I prevent that from happening ?

Karlheinzniebuhr avatar Jun 10 '21 19:06 Karlheinzniebuhr

@Karlheinzniebuhr

Can you please, provide the full code you use ?? Best reagrds.

nabil-hfz avatar Jun 13 '21 22:06 nabil-hfz