-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add StarBorder and StarBorder.polygon, with example. #108489
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
Piinks
left a comment
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.
Matches previous PR. LGTM!
|
Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change). If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review. 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 Great stuff! I was wondering if perhaps you could extract StarBorder.polygon into its own PolygonBorder class maybe? Also maybe add a new PolygonBorderSide so we can style individual sides of the polygon |
|
@MrHBS I thought about that, but I decided not to because of the combinatoric explosion of the lerp functions: each new border class we introduce expands the number of necessary Styling individual sides is interesting, though, I'll think about that. Could you file a feature request issue, please? |
Description
This PR replaces #107979 because Gold got really confused by my force-pushing things.
This adds
StarBorder, along with the interpolations to/fromCircleBorder,RoundedRectBorder, andStadiumBorder.The example looks like this Dartpad. (If it won't load because GitHub's API is overloaded, copy the Gist here into your own DartPad).
Related Issues
Tests