Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add avoid_shrink_wrap_in_list_view rule #28

Merged
merged 3 commits into from
Jul 29, 2024

Conversation

naipaka
Copy link
Contributor

@naipaka naipaka commented Jul 29, 2024

๐Ÿ”— Related Issues

  • None.

๐Ÿ™Œ What's Done

  • Add avoid shrink wrap in list view

โœ๏ธ What's Not Done

  • None

๐Ÿ–ผ๏ธ Image Differences

CleanShot 2024-07-29 at 12 17 00

๐Ÿคผ Desired Review Method

  • Correction Commit
  • Pair programming

Note

It is possible that a reviewer's will may cause a method to be implemented that is not selected.

๐Ÿ“ Additional Notes

Pre-launch Checklist

  • I have reviewed my own code.
  • I have added tests that prove my fix is effective or that my feature works.
  • I updated/added relevant documentation (doc comments with ///).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are useful utils for determining whether an arbitrary type is used during exploration.

I have added them in this PR as we will likely use them for future rule additions, and they are already being used in this instance.

Comment on lines +12 to +13
flutter:
sdk: flutter
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added because the test uses Widget.

@naipaka naipaka marked this pull request as ready for review July 29, 2024 03:18
@naipaka naipaka requested a review from a team as a code owner July 29, 2024 03:18
@naipaka naipaka requested review from riscait and removed request for a team July 29, 2024 03:18
@naipaka naipaka changed the title feat: Add avoid shrink wrap in list view feat: Add avoid shrinkWrap in ListView rule Jul 29, 2024
@naipaka naipaka changed the title feat: Add avoid shrinkWrap in ListView rule feat: Add avoid_shrink_wrap_in_list_view rule Jul 29, 2024
Copy link
Member

@riscait riscait left a comment

Choose a reason for hiding this comment

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

LGTM
We can prevent misuse!
Thanks also for the addition of Util!

@naipaka naipaka merged commit b36d165 into main Jul 29, 2024
1 check passed
@naipaka naipaka deleted the add-avoid-shrink-wrap-in-list-view branch July 29, 2024 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants