Skip to content

ReactiveTextField looks strange using Flutter web #85

@tk512

Description

@tk512

I am using ReactiveTextField in the way shown in the example project of reactive_forms and it renders perfectly on desktop browsers, but on mobile (using the project built using: flutter build web --web-renderer html) the textfields start looking funny once they are selected.

Field initially:
https://i.imgur.com/6gFXpNf.jpeg

When selected, it displays a strange border:
https://i.imgur.com/hYa5tPA.jpg

The code is as follows:

ReactiveTextField(
                  formControlName: 'emailAddress',
                  validationMessages: (control) => {
                    ValidationMessage.required: 'The email can not be empty',
                    ValidationMessage.email: 'The email value must be a valid email'
                  },
                  onSubmitted: () => form.focus('cellularPhoneNumber'),
                  textInputAction: TextInputAction.next,
                  decoration: InputDecoration(labelText: 'E-mail address'),
                ),

I have tested this on both iOS and Android using a variety of browsers, so I think the issue is either with reactive_forms or with Flutter web. Is there a workaround / fix for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions