ShaderMask needs to play nicely with compositing

This patch adds ShaderLayer and makes ShaderMask use it.

Fixes #1155
This commit is contained in:
Adam Barth
2016-01-11 15:10:46 -08:00
parent 875da1f53f
commit 82bb3bd40d
5 changed files with 53 additions and 26 deletions

View File

@@ -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]
)