Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Flutter FormBuilderTextField remove autocorrection and other formatters

I have FormBuilderTextField, where user provide his login.

                FormBuilderTextField(
                  textInputAction: TextInputAction.next,
                  name: 'login',
                  validator: FormBuilderValidators.required(),
                  decoration: const InputDecoration(labelText: 'Login'),
                ),

But keyboard force first letter as Capital, and moreover add space after write one word. How to block this features? I need exatly same phrase like user fill in form

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Try setting as follows:

FormBuilderTextField(
  textCapitalization: TextCapitalization.none, // Added
  autocorrect: false, // Added
  textInputAction: TextInputAction.next,
  name: 'login',
  validator: FormBuilderValidators.required(),
  decoration: const InputDecoration(labelText: 'Login'),
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading