-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
Image color blend mode #9486
Image color blend mode #9486
Conversation
4ced62b
to
761d69e
Compare
/// | ||
/// The default is [BlendMode.srcIn]. In terms of the blend mode, [color] is | ||
/// the source and this image is the destination. | ||
BlendMode get colorBlendMode => _colorBlendMode; |
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.
Please point to [BlendMode]
for a discussion of the values and their meanings.
/// | ||
/// The default is [BlendMode.srcIn]. In terms of the blend mode, [color] is | ||
/// the source and this image is the destination. | ||
final BlendMode colorBlendMode; |
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.
ditto
/// | ||
/// The default is [BlendMode.srcIn]. In terms of the blend mode, [color] is | ||
/// the source and this image is the destination. | ||
final BlendMode colorBlendMode; |
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.
ditto
@@ -100,10 +102,10 @@ class RenderImage extends RenderBox { | |||
if (_color == null) |
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.
remove the comment? :-)
Previously the color's blend mode was always
BlendMode.srcIn
. That remains the default.Fixes #9219