Skip to content

Reset TextFormField to initial value after state change - #181199

Merged
auto-submit[bot] merged 4 commits into
flutter:masterfrom
Mairramer:fix/reset-text-form-field-to-initial-value
Jan 23, 2026
Merged

auto-submit[bot] merged 4 commits into
flutter:masterfrom
Mairramer:fix/reset-text-form-field-to-initial-value

Conversation

@Mairramer

@Mairramer Mairramer commented Jan 20, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #180056
Fixes #104975

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FormState.reset() doesn't reset TextFormField if its parent rebuilds TextFormField reset works only for the first time

4 participants