Skip to content

TextFormField suffix icon doesn't turn red on validation error #82823

@carlosfiori

Description

@carlosfiori

Steps to Reproduce

Create and validate the TextFormField below:

 TextFormField(
  decoration: const InputDecoration(
    labelText: "Password",
    border: OutlineInputBorder(),
    suffixIcon: Icon(Icons.lock_outline),
  ),
  validator: (value) {
    if (value!.isEmpty) {
      return 'Please enter some text';
    }
    return null;
  },
)

Expected results:
image

Actual results:
image

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsf: material designflutter/packages/flutter/material repository.found in release: 2.2Found to occur in 2.2found in release: 2.3Found to occur in 2.3frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions