How to disable predictive text in TextField of Flutter?
If neither enableSuggestions
nor autocorrect
can solve the problem, try setting keyboardType
to TextInputType.visiblePassword.
You can try to add enableSuggestions = false
to your textfield widget. This should disable the predictive text from your keyboard as supposed to https://github.com/flutter/flutter/pull/42550.
TextField( autocorrect: false, enableSuggestions: false, keyboardType: TextInputType.emailAddress, decoration: new InputDecoration(hintText: "Enter text"), autofocus: true, ),
At the time of writing this answer, this is not yet available in Android. But using autocorrect: false on iOS should work fine.