Skip to content
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

word duplication issue in samsung and miui devices #83

Open
ganeh04 opened this issue Jun 8, 2020 · 0 comments
Open

word duplication issue in samsung and miui devices #83

ganeh04 opened this issue Jun 8, 2020 · 0 comments

Comments

@ganeh04
Copy link

ganeh04 commented Jun 8, 2020

I am working on project based on the flutter. My requirement is like I will have an text box by entering 4 letters in that text box I need to make an API call and I need to display the suggestion list. I am using this library for displaying the suggestion. The problem is all this API call and every thing is working fine but in the devices like Samsung and devices built on MI-UI versions when user enter the text with 4 characters as expected API call is happening and displaying the suggestions list but if the user tries to delete the last two characters and tried to enter some other charterers the words is getting duplicated. This issue is only happening in the above mentioned devices but it is not happening in other devices. I had checked a lot to solve this issue finally I came to know in Samsung devices there is a setting called predictive text inside the keyboard settings if we turn that thing to off we can able to solve this issue. But how can user knows this issue and what way we can solve this issue in MI-UI devices and one more thing is there are lot of text fields available inside of my application but this issue is only happening to this text field alone . Is there any programmatic way to turn of the predictive text which is not an unique settings across all the devices ?

User enter text :-ABCD Text after deleting :-AB User tried to enter text is :-F Displayed text:- ABABF Expected output:-ABF

`SimpleAutoCompleteTextField(
keyboardType: TextInputType.text,
controller: searchController,
key: key,
textCapitalization: TextCapitalization.none, // this will be used not to captalize first letters
suggestions: SearchTabView.list,
textChanged: (text) async {
print(text);

  if (text.length >= 4) {   // after 4 letters it will make an api call

    // this method is used to check to make an api call or need to load data from the existing list
    await suggestionsList(text, autoSuggestionRequest, context, reload,
            autoCompleteTextField)
        .then((list) {
      suggestionlist = list;
      //reload(list);
    });
  }
}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant