-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add support for text shadows. #22449
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
|
See flutter/engine#6385 for Engine-side changes. |
|
Tests will not pass until the engine is landed and rolled. |
|
This is still missing golden tests, but I wanted to do that in a separate patch to keep the merging of this one smooth. |
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.
these need types
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.
ah, i would have expected this to be the class in dart:ui
da9f0b2 to
e4a703a
Compare
|
Should this be called |
|
If you are referencing the class If you mean the 'shadows' property of TextStyle, since the "list of shadows" concept can be applied on multiple widgets, in order to keep it consistent and not have a Shadows prefix to each instance of shadows, I have called it just "shadows". I think this more unified API is a bit more predictable to work with. The fact that it is a Text shadow is signified by it being a property of TextStyle. |
98024de to
18d770d
Compare
This changes BoxShadow to inherit from Shadow (a new class without the spreadRadius)
TextStyle holds a
List<Shadow>.Fixes/Adds features for #3402