New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search screen not displaying anything when I search #23
Comments
I am getting the same error. Did you figure it out? |
Try copying the code from the repository as it is , it will work. |
I tried that. Still the problem persists. |
try clearing everything from database.. |
clearing everything from database did not work for me |
didnt work for me |
W/Firestore( 9173): (21.3.0) [FirestoreCallCredentials]: Failed to get token: com.google.firebase.firestore.FirebaseFirestoreException: getToken aborted due to token change. Before searching, as soon as you click the search button in the home page, I am getting this error in the terminal. |
https://stackoverflow.com/questions/52513691/firebase-js-error-gettoken-aborted-due-to-token-change I fixed it by modifying the database rules.
This should set it right. |
This worked for me, thank you so much |
this worked for me too, thanks |
initially my code was working fine but after working more on the project , I got this error
[NoSuchMethodError: The method 'where' was called on null.
Receiver: null
Tried calling: where(Closure: (User) => bool)
See also:
https://flutter.dev/docs/testing/errors]
then I changed my a funtion and wrote this -
` buildSuggestions(String query) {
final List suggestionList = query.isEmpty
? []
: userList != null
? userList.where((User user) {
String _getUsername = user.username.toLowerCase();
String _query = query.toLowerCase();
String _getName = user.name.toLowerCase();
bool matchesUsername = _getUsername.contains(_query);
bool matchesName = _getName.contains(_query);
but still the search screen doesnt display the user it used to display intially
The text was updated successfully, but these errors were encountered: