8000 [web_benchmarks] Fix _RecordingWidgetsBinding to conform to latest API by ditman · Pull Request #700 · flutter/packages · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[web_benchmarks] Fix _RecordingWidgetsBinding to conform to latest API #700

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

Merged

Conversation

ditman
Copy link
Member
@ditman ditman commented Feb 5, 2022

The _RecordingWidgetsBinding class from package:web_benchmarks is now somewhat outdated, after this code landed in flutter 2.10:

After reading the docs above, the current implementation (and minimal fix) are mixing the concepts of Binding class and mixin in a single class, but it seems to work. Summoning @yjbanov who wrote this originally, and might have a better idea for a fix!

Note: This package is still not null-safe; YIKES!

@ditman ditman requested a review from yjbanov February 7, 2022 19:16
Copy link
Contributor
@yjbanov yjbanov left a comment

Choose a reason for hiding this comment

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

lgtm

@ditman ditman marked this pull request as ready for review February 8, 2022 19:55
@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 to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

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.

@Hixie
Copy link
Contributor
Hixie commented Feb 8, 2022

test-exempt: fixes tests

@fluttergithubbot fluttergithubbot merged commit a7c287b into flutter:main Feb 8, 2022
@ditman ditman deleted the web_benchmarks_recording_binding_fix branch February 8, 2022 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0