Home > Software engineering >  Flutter - Disable TextField image insert options
Flutter - Disable TextField image insert options

Time:01-14

I searched everywhere and couln't find any solution...

How to disable the image insert/gif/translation options in the TextField/TextFormField widgets?

enter image description here

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,
  ...
)
  • Related