Repository navigation
Description
Use case
Currently, when using TextField / TextFormField, the error text (errorText) is rendered with an indent that matches the input/hint text padding. This behavior makes the error text look visually offset from the left border of the field.
At the moment, the only way to fix this is by overriding decoration properties (error widget, custom padding, etc.) on each individual field. This is tedious and redundant in larger apps. If the padding needs to be adjusted later, developers must revisit every field manually.
Proposal
Introduce a theme-level property (e.g., in InputDecorationTheme) that controls the horizontal alignment/padding of error/helper text independently from the input/hint text.
Example API idea:
InputDecorationTheme(
errorPadding: EdgeInsets.zero, // or Alignment options
errorAlignment: TextAlign.start,
)
Why it matters:
Developers often want the input/hint text to be padded, but the error text to be flush with the text field border.
This improves visual consistency in UIs.
Reduces redundancy by eliminating per-field overrides.
Activity
tirth-patel-nc commentedon Sep 23, 2025
@YawarOsman thanks for the report. labelling it as a new proposal.
Also, InputDecorationTheme already has contentPadding property.
dkwingsmt commentedon Sep 24, 2025
@YawarOsman Can you give an example of the misalignment, possibly with a repro code and screenshot? Thank you.
18 remaining items
abikko commentedon Oct 31, 2025
@tirth-patel-nc
Hi!
Created PR - but it's not ready yet...
#177826
abikko commentedon Nov 4, 2025
@tirth-patel-nc Hi, I done with implementing the fix for issue, could someone review my PR?
After approve I will start writing tests
YawarOsman commentedon Jan 2, 2026
What do you mean by misalignment? it's clear what i mentioned
MohanadAbdallah-mv commentedon Feb 13, 2026
Hello , I was working on issue #181755 before it got closed as duplicate but since @abikko is assigned to this issue , hope you find that proposal helpful .
I will be ready to help as well if that issue have follow-ups
flutter-triage-bot commentedon Jun 18, 2026
This issue is assigned to @abikko but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
Rename "subtext" to "supportingTextPadding" in `FormField`'s document…
github-actions commentedon Oct 14, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Rename "subtext" to "supportingTextPadding" in `FormField`'s document…