I searched everywhere and couln't find any solution...
How to disable the image insert
/gif
/translation
options in the TextField
/TextFormField
widgets?
CodePudding user response:
make the enableInteractiveSelection property to false of the TextField
enableInteractiveSelection:false,
you can read the details in the official documentation here
CodePudding user response:
Try setting the KeyboardType
to accept only text in the TextField
:
TextFormField(
keyboardType: TextInputType.text,
// or keyboardType: TextInputType.multiline,
...
)