flutter_typeahead
flutter_typeahead copied to clipboard
onSuggestionSelected not working Web.
I'm using flutter_typeahead: ^1.8.0 . All things Working correctly but when I select Item from dropdown onSuggestionSelected not called.
Widget widgetDestination() {
return TypeAheadField(
hideSuggestionsOnKeyboardHide: false,
textFieldConfiguration: TextFieldConfiguration(
controller: txtDest,
decoration:
InputDecoration(border: InputBorder.none, hintText: destination?.source?? "To",
)),
suggestionsCallback: (pattern) async {
return await searchStoppage(pattern);
},
itemBuilder: (context, suggestion) {
return Padding(
padding: const EdgeInsets.all(8.0),
child: Text(suggestion),
);
/*var data = suggestion as Data;
return ListTile(
title: Text(data.source),
subtitle: Text(data.address,style: TextStyle(fontSize: 9)),
);*/
},
onSuggestionSelected: (suggestion) {
print("DDDDDD $suggestion");
},
);
}
having the same issue here!
just to keep things organized .. this issue seems related to this one here ..#151
no solution!!!
"deepakKanyanRor" this workaround worked for us momentarily...the mouse highlight doesn't work with this but when you point and click with the mouse it does the job... https://github.com/AbdulRahmanAlHamali/flutter_typeahead/issues/151#issuecomment-590934761
having the same issue are you have solution ?
Any progress on this? Thanks!
Are there any updates?
resserved, same problem
Hello guys check this thread, there is a solution here https://github.com/AbdulRahmanAlHamali/flutter_typeahead/issues/186
this is a duplicate, why not close this issue ?
onSuggestionSelected is not updating controllers for me as well