flutter_typeahead icon indicating copy to clipboard operation
flutter_typeahead copied to clipboard

How to continue typing after selected.

Open lequyhien98 opened this issue 3 years ago • 2 comments

image

My code: image

lequyhien98 avatar May 22 '21 11:05 lequyhien98

Also wondering how to achieve this. I guess we can manipulate the text controller?

Marcosmaliki avatar Nov 16 '21 05:11 Marcosmaliki

yes, that is correct. In my code I do something like this:

  controller.selection = TextSelection(
    baseOffset: controller.text.length,
    extentOffset: controller.text.length,
  );

inside of onSuggestionSelected

clragon avatar Nov 21 '21 15:11 clragon