Skip to content

Remove redundant disabledBorder check in InputDecorationThemeData - #187556

Closed
MohanadAbdallah-mv wants to merge 2 commits into
flutter:masterfrom
MohanadAbdallah-mv:fix-redundant-disabled-border-check
Closed

MohanadAbdallah-mv wants to merge 2 commits into
flutter:masterfrom
MohanadAbdallah-mv:fix-redundant-disabled-border-check

Conversation

@MohanadAbdallah-mv

Copy link
Copy Markdown
Contributor

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. p: material_ui material_ui package in flutter/packages labels Jun 4, 2026

@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 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.

@Renzo-Olivares
Renzo-Olivares self-requested a review June 8, 2026 22:27

@Renzo-Olivares Renzo-Olivares 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.

LGTM, thank you for the quick fix!

@Renzo-Olivares Renzo-Olivares added the CICD Run CI/CD label Jun 8, 2026

@QuncCccccc QuncCccccc 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.

LGTM. Thanks!

@github-actions github-actions Bot removed the CICD Run CI/CD label Jun 9, 2026
@Renzo-Olivares Renzo-Olivares added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App labels Jun 9, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jun 9, 2026
@auto-submit

auto-submit Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/187556, because - The status or check suite Check Code Freeze has failed. Please fix the issues identified (or deflake) before re-applying this label.

@QuncCccccc

Copy link
Copy Markdown
Contributor

Since this PR is ready to land but we are still waiting for the code freeze, I'm going to mark this PR as draft for now. Once the decoupling has done, we can copy the change and create another PR over there:)! Thanks!

@QuncCccccc QuncCccccc added the waiting for code freeze This PR is waiting for a code freeze to resolve. label Jun 10, 2026
@QuncCccccc
QuncCccccc marked this pull request as draft June 10, 2026 02:38
@Piinks Piinks added the Decoupling: Not ready to port yet Instructions will be provided when this is ready to move to flutter/packages. label Jun 24, 2026
@Piinks

Piinks commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

I've marked this PR as not ready to port to flutter/packages yet.
We'll provide instructions to move this change over to material_ui/cupertino_ui once ready to receive PRs. Thank you!

auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Sep 16, 2026
…nThemeData (#12797)

Removes a duplicate condition in the == operator of InputDecorationThemeData.
The check other.disabledBorder == disabledBorder appeared twice ,This was noticed during the review of flutter/flutter#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.*
Port of flutter/flutter#187556
## Pre-Review Checklist

**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). 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.

[^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.
@Piinks

Piinks commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

This can now be ported over to the flutter/packages repo in material_ui!
Guidance and instructions for porting are in #188444

@Piinks Piinks added Decoupling: Port to flutter/packages This PR is ready to be ported to flutter/packages. We will provide instructions to do so. and removed Decoupling: Not ready to port yet Instructions will be provided when this is ready to move to flutter/packages. waiting for code freeze This PR is waiting for a code freeze to resolve. labels Sep 21, 2026
@QuncCccccc

Copy link
Copy Markdown
Contributor

This has been ported over to material_ui and the PR has landed flutter/packages#12797. So closing this one.

@QuncCccccc QuncCccccc closed this Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD Decoupling: Port to flutter/packages This PR is ready to be ported to flutter/packages. We will provide instructions to do so. 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.

4 participants