alexrindone / flutter_textfield_search

FTFS is a Flutter package which uses a TextField Widget to search and select a value from a list. It's a simple, lightweight, and fully tested package unlike other "autocomplete" or textfield search packages with 100% code coverage.
BSD 2-Clause "Simplified" License
27 stars 33 forks source link

E/flutter (22830): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: NoSuchMethodError: Class 'String' has no instance getter 'label'. #25

Closed ndemeyvan closed 4 years ago

alexrindone commented 4 years ago

@ndemeyvan thank you for opening the issue and thank you for being the first other than myself to open an issue! I hope that you find my bug fixes solve your issue and thank you again for bringing it to my attention.

ndemeyvan commented 3 years ago

Thank you Mr @alexrindone but i have the same probleme :

But i get this error : but i still have this error ([ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: NoSuchMethodError: Class 'String' has no instance getter 'label'.) with the version 0.7.0, what am i doing wrong?

HuyNguyen1590 commented 2 years ago

I don't know why this library do it but you need to create a list of TestItem with "label" property rather than List of String. Because it do call list[i].label to check the search item. I hope it will write clearly in the document. Btw, this problem exist 2 years without fixed

dorklord23 commented 7 months ago

I don't think it is a bug. More like a missing info in the documentation.