-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Move FlutterLogo out of Material library #154711
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
Move FlutterLogo out of Material library #154711
Conversation
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To verify that the new import works, this needs a test. However, we already have a test for FlutterLogo
at
https://github.com/flutter/flutter/blob/master/packages/flutter/test/material/flutter_logo_test.dart
Could you move flutter_logo_test.dart
to test/widgets/flutter_logo_test.dart
(so essentially also moving the test file)
and update the import in that file to point to the widgets library? That would be sufficient as a test for this.
(updating the import statement is the new test)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback, Sir! I'll make the changes and update the test file as soon as I can. I'll notify you once it's done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @navaronbracke , I’ve made the requested changes. I’ve moved flutter_logo_test.dart to the widgets directory and updated the import to point to the widgets library. Please review when you have time. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test file is still under material directory.
This still has an analysis failure:
If you run |
Thanks for pointing that out! I'll fix it as soon as possible and update the PR. |
@SohanRaidev there are still some failing checks here, can you take a look? |
Closing as #155864 fixes the accompanying issue. |
The PR is moving FlutterLogo from `lib/src/material` to `lib/src/widgets` because it has no dependency on Material. Issue: flutter#154448 PS: There is [older PR](flutter#154711) for this issue and I don't know the policy on conflicting PRs. Let me know if I need to drop mine.
Fixes #154448
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.