Skip to content

Conversation

@HansMuller
Copy link
Contributor

If helper text is specified it appears below the input field, where the error text appears.

If both helper and error text are specified, the error text and its red divider, are displayed.

screenshot

Fixes #10807

if (labelText != null)
description.add('labelText: "$labelText"');
if (helperText != null)
description.add('hellperText: "$helperText"');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too many Ls

errorText,
style: errorStyle,
errorText ?? helperText,
style: subtextStyle,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be animating this stuff?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could cross fade between the error and helper text, and animate the divider's color change. I'll file an issue.

@Hixie
Copy link
Contributor

Hixie commented Jun 20, 2017

LGTM

@HansMuller HansMuller merged commit 40db1e4 into flutter:master Jun 20, 2017
@HansMuller HansMuller deleted the helper_text branch June 20, 2017 16:33
@HansMuller HansMuller self-assigned this Jun 20, 2017
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jul 1, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request - Helper Text in TextField/InputDecoration

3 participants