flutter_typeahead icon indicating copy to clipboard operation
flutter_typeahead copied to clipboard

onSuggestionSelected not working Web.

Open DeepakKanyanRor opened this issue 5 years ago • 12 comments

I'm using flutter_typeahead: ^1.8.0 . All things Working correctly but when I select Item from dropdown onSuggestionSelected not called.

DeepakKanyanRor avatar Feb 21 '20 09:02 DeepakKanyanRor

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");

      },

    );
  }

DeepakKanyanRor avatar Feb 21 '20 09:02 DeepakKanyanRor

having the same issue here!

dan-r95 avatar Feb 24 '20 21:02 dan-r95

just to keep things organized .. this issue seems related to this one here ..#151

abcnow avatar Feb 25 '20 03:02 abcnow

no solution!!!

DeepakKanyanRor avatar Feb 27 '20 12:02 DeepakKanyanRor

"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

abcnow avatar Feb 27 '20 23:02 abcnow

having the same issue are you have solution ?

kiaxseventh avatar Mar 05 '20 10:03 kiaxseventh

Any progress on this? Thanks!

JaviBonilla avatar Apr 09 '20 15:04 JaviBonilla

Are there any updates?

stalko avatar Apr 13 '20 09:04 stalko

resserved, same problem

klokoleva avatar May 05 '20 04:05 klokoleva

Hello guys check this thread, there is a solution here https://github.com/AbdulRahmanAlHamali/flutter_typeahead/issues/186

bytejutsu avatar Jun 04 '20 20:06 bytejutsu

this is a duplicate, why not close this issue ?

pierre-gancel avatar Oct 13 '20 08:10 pierre-gancel

onSuggestionSelected is not updating controllers for me as well

lordvidex avatar Sep 12 '21 00:09 lordvidex