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

[flutter_adaptive_scaffold] Add breakpoint extension to get the current active breakpoint #7347

Merged
merged 17 commits into from
Aug 15, 2024

Conversation

martijn00
Copy link
Contributor

@martijn00 martijn00 commented Aug 8, 2024

This enables people to check what the current breakpoint is and adjust UI based on that.

List which issues are fixed by this PR. You must list at least one issue.

Pre-launch Checklist

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

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@gspencergoog gspencergoog changed the title Add breakpoint extension to get the current active breakpoint [flutter_adaptive_scaffold] Add breakpoint extension to get the current active breakpoint Aug 8, 2024
@martijn00
Copy link
Contributor Author

@gspencergoog I just wanted to get your opinion on this before working further on it.

It needs a rebase after #7300 is merged

@martijn00
Copy link
Contributor Author

@gspencergoog @Renzo-Olivares do you have some more feedback on this? Otherwise i'll go ahead and add some tests and other changes required.

@martijn00
Copy link
Contributor Author

@Renzo-Olivares @gspencergoog this is ready to review now.

Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

@diegotori
Copy link

@gspencergoog I know that you have already approved it, but I did add some feedback that might make @martijn00's changes a bit more concise.

In other words, I added suggestions in terms of breaking up the static method into smaller components, thus making it more manageable.

Please let me know if it makes sense for you to rescind your approval for these proposed suggestions. Thanks.

@martijn00
Copy link
Contributor Author

@diegotori some good feedback! I've made the changes for it. @gspencergoog can you review again and let me know if you agree?

@diegotori
Copy link

@diegotori some good feedback! I've made the changes for it. @gspencergoog can you review again and let me know if you agree?

Added one more nit.

Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

Works for me.

Copy link

@diegotori diegotori left a comment

Choose a reason for hiding this comment

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

LGTM.

@diegotori
Copy link

@gspencergoog looks like the PR's all green.

Copy link

@diegotori diegotori left a comment

Choose a reason for hiding this comment

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

LGTM again.

@martijn00
Copy link
Contributor Author

@Renzo-Olivares @gspencergoog What do you think?

Copy link

@Renzo-Olivares Renzo-Olivares left a comment

Choose a reason for hiding this comment

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

I added a few fly-by nits. Still going over the changes to pickWidget.

@martijn00
Copy link
Contributor Author

@Renzo-Olivares fixed those now.

@Renzo-Olivares Renzo-Olivares self-requested a review August 15, 2024 20:47
Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

Sorry, I need to put this PR on hold for a bit while I check on our policies about AI-generated code. Hopefully it won't affect things.

Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

Ok, all good to go.

(Sorry, policy has changed a lot over the last year, and I wanted to make sure we could still accept it).

@martijn00
Copy link
Contributor Author

@Renzo-Olivares fixed the dots.

@gspencergoog gspencergoog added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 15, 2024
@auto-submit auto-submit bot merged commit acb6a29 into flutter:main Aug 15, 2024
76 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 16, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 16, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Aug 16, 2024
flutter/packages@86d15a6...2c37fb0

2024-08-16 engine-flutter-autoroll@skia.org Manual roll Flutter from 99f00a1 to bced008 (13 revisions) (flutter/packages#7424)
2024-08-16 10687576+bparrishMines@users.noreply.github.com [interactive_media_ads] Adds IMA plugin to labeler yaml (flutter/packages#7420)
2024-08-15 matanlurey@users.noreply.github.com Roll `avd_cipd_verison` to latest to use the `crashreport` tool. (flutter/packages#7422)
2024-08-15 mhvdijk@gmail.com [flutter_adaptive_scaffold] Add breakpoint extension to get the current active breakpoint (flutter/packages#7347)
2024-08-15 engine-flutter-autoroll@skia.org Roll Flutter from cc13cd1 to 99f00a1 (24 revisions) (flutter/packages#7419)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
DBowen33 pushed a commit to DBowen33/flutter that referenced this pull request Aug 16, 2024
flutter/packages@86d15a6...2c37fb0

2024-08-16 engine-flutter-autoroll@skia.org Manual roll Flutter from 99f00a1 to bced008 (13 revisions) (flutter/packages#7424)
2024-08-16 10687576+bparrishMines@users.noreply.github.com [interactive_media_ads] Adds IMA plugin to labeler yaml (flutter/packages#7420)
2024-08-15 matanlurey@users.noreply.github.com Roll `avd_cipd_verison` to latest to use the `crashreport` tool. (flutter/packages#7422)
2024-08-15 mhvdijk@gmail.com [flutter_adaptive_scaffold] Add breakpoint extension to get the current active breakpoint (flutter/packages#7347)
2024-08-15 engine-flutter-autoroll@skia.org Roll Flutter from cc13cd1 to 99f00a1 (24 revisions) (flutter/packages#7419)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Buchimi pushed a commit to Buchimi/flutter that referenced this pull request Sep 2, 2024
flutter/packages@86d15a6...2c37fb0

2024-08-16 engine-flutter-autoroll@skia.org Manual roll Flutter from 99f00a1 to bced008 (13 revisions) (flutter/packages#7424)
2024-08-16 10687576+bparrishMines@users.noreply.github.com [interactive_media_ads] Adds IMA plugin to labeler yaml (flutter/packages#7420)
2024-08-15 matanlurey@users.noreply.github.com Roll `avd_cipd_verison` to latest to use the `crashreport` tool. (flutter/packages#7422)
2024-08-15 mhvdijk@gmail.com [flutter_adaptive_scaffold] Add breakpoint extension to get the current active breakpoint (flutter/packages#7347)
2024-08-15 engine-flutter-autoroll@skia.org Roll Flutter from cc13cd1 to 99f00a1 (24 revisions) (flutter/packages#7419)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: flutter_adaptive_scaffold
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants