Skip to content

TextField should incorporate Theming #56082

@Piinks

Description

@Piinks

Following up on an old To-Do regarding cursorColor:

// TODO(sandrasandeep): change to color provided by Material Design team

The Material spec doesn't provide specific guidance about the cursor color and the examples aren't entirely consistent - https://material.io/components/text-field. In most cases the examples use the primary or error color, depending on the TextField's stat. That said, the default is clearly wrong and shouldn't be specified here. We need a TextFieldTheme per flutter.dev/go/material-theme-system-updates (see "Component Theme Normalization") and, similarly, TextField should be responsible for computing the default cursor color.

Metadata

Metadata

Assignees

Labels

a: text inputEntering text in a text field or keyboard related problemsf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions