-
Notifications
You must be signed in to change notification settings - Fork 28.6k
More beautiful linear_gradient sample #96491
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
Conversation
Tweaking example so that it's more attractive to a design-orientated audience
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. 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. |
Nice! I think we also need to adjust the description accompanying this example. It's not really "vertical window shades" we are showing now:
|
We are trying to add tests as a requirement for all changes, including examples, so adding a test here would be good. We have examples of tests for examples in the |
This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
@gspencergoog @Piinks Do we support golden tests in API samples? This seems to be the first one added to the API samples and its failing... |
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.
We don't currently, but I think it would work if you include
return flutter_goldens.testExecutable(testMain); |
in a flutter_test_config.dart
file in examples/api/test
, like in the flutter package.
https://github.com/flutter/flutter/blob/master/packages/flutter/test/flutter_test_config.dart
@goderbauer API Samples are just normal code now, so yes, they should support golden tests. |
Oh, I didn't know packages needed configuring to make goldens work, but I guess that makes sense. |
Just for if they want to use https://flutter-gold.skia.org/, this repo doesn't use the default golden file configuration |
I created #99298, which incorporates this PR and enables running golden tests for our API samples to make the newly added test pass. If that PR gets submitted, we can close this one. |
Closing per #99298 (comment) |
Tweak example so that it's more attractive to a design-oriented audience.
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on [Discord].