Skip to content

Conversation

stefanschaller
Copy link

No description provided.

final bool forceErrorState;

/// If true, the error will also be displayed in the focused state. Otherwise the error is not displayed in the focused state.
final bool showErrorWhenFocused;
Copy link
Owner

Choose a reason for hiding this comment

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

Can't you use the forceErrorState instead?

Copy link
Author

Choose a reason for hiding this comment

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

The default behavior of a normal text field is that the error is displayed even when the user focuses on the field.
In theory, I could also use forceErrorState, but then I would need to handle focus checks manually.
From my perspective, this approach is much easier.

Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

@Tkko Any news?

Copy link
Author

Choose a reason for hiding this comment

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

@Tkko ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants