ShaderMask needs to play nicely with compositing
This patch adds ShaderLayer and makes ShaderMask use it. Fixes #1155
This commit is contained in:
@@ -393,8 +393,8 @@ class CardCollectionState extends State<CardCollection> {
|
||||
|
||||
ui.Shader _createShader(Rect bounds) {
|
||||
return new LinearGradient(
|
||||
begin: Point.origin,
|
||||
end: new Point(0.0, bounds.height),
|
||||
begin: bounds.topLeft,
|
||||
end: bounds.bottomLeft,
|
||||
colors: <Color>[const Color(0x00FFFFFF), const Color(0xFFFFFFFF)],
|
||||
stops: <double>[0.1, 0.35]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user