Skip to content

[material_ui] Fix OutlineInputBorder corner arcs when floating label gap lies within corner radius - #13794

Open
Mairramer wants to merge 4 commits into
flutter:mainfrom
Mairramer:fix/outline-input-border-rlt
Open

Mairramer wants to merge 4 commits into
flutter:mainfrom
Mairramer:fix/outline-input-border-rlt

Conversation

@Mairramer

@Mairramer Mairramer commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Fixes an issue where OutlineInputBorder draws a straight horizontal line through the top-left or top-right corner radius during the floating label animation when the label gap falls within the corner arc.

  • Top-right corner (typically RTL): When start falls within the top-right corner radius (start >= outerWidth - scaledRRect.trRadiusX), stop the top horizontal line at scaledRRect.right - scaledRRect.trRadiusX and draw the remaining corner arc up to start before the gap.
  • Top-left corner (typically LTR): When the gap ends within the top-left corner radius (start + extent < scaledRRect.tlRadiusX), draw the remaining corner arc from start + extent to the top edge before continuing with the horizontal line.

Fixes flutter/flutter#197397
Fixes flutter/flutter#153387

fixed-behavior

Pre-Review 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.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2

@github-actions github-actions Bot added p: material_ui triage-design Should be looked at in design triage labels Nov 26, 2026
@Mairramer Mairramer changed the title OutlineInputBorder top-right corner arc for RTL gap within corner radius [material_ui] Fix OutlineInputBorder corner arcs when floating label gap lies within corner radius Nov 26, 2026
@Mairramer Mairramer added the CICD Run CI/CD label Nov 26, 2026
@Mairramer
Mairramer marked this pull request as ready for review November 26, 2026 13:30

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request modifies OutlineInputBorder to handle cases where the floating label gap lies within the top-left or top-right corner radius, and adds a corresponding regression test. The review feedback identifies an issue where the remaining portion of the top-right corner arc after the gap is not drawn when the gap ends within the top-right corner radius, and provides a code suggestion to resolve it.

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

Labels

CICD Run CI/CD p: material_ui P2 Important issues not at the top of the work list triage-design Should be looked at in design triage

Projects

None yet

1 participant