Skip to content

Remove redundant disabledBorder check in InputDecorationThemeData#187556

Open
MohanadAbdallah-mv wants to merge 1 commit into
flutter:masterfrom
MohanadAbdallah-mv:fix-redundant-disabled-border-check
Open

Remove redundant disabledBorder check in InputDecorationThemeData#187556
MohanadAbdallah-mv wants to merge 1 commit into
flutter:masterfrom
MohanadAbdallah-mv:fix-redundant-disabled-border-check

Conversation

@MohanadAbdallah-mv
Copy link
Copy Markdown

Removes a duplicate condition in the == operator of InputDecorationThemeData.
The check other.disabledBorder == disabledBorder appeared twice ,This was noticed during the review of #183582.
No behavior change since the duplicate was always true when reached.

List which issues are fixed by this PR. You must list at least one issue. An issue is not required if the PR fixes something trivial like a typo.
#183582 (comment)
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

Pre-launch Checklist

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

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

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.

@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Jun 4, 2026
Copy link
Copy Markdown
Contributor

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

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 removes the disabledBorder equality check from the == operator of InputDecorationThemeData in packages/flutter/lib/src/material/input_decorator.dart. There are no review comments, and I have no feedback to provide.

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

Labels

f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant