mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
Sky: Allow clients to specify tile mode for gradients (repeating or mirror).
R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1166223004.
This commit is contained in:
parent
6b3840e384
commit
ba6a9a2ba5
|
@ -68,9 +68,9 @@ void main() {
|
|||
..setPaintBits(-1),
|
||||
(Paint layerPaint) {
|
||||
Gradient redYellow = new Gradient.Radial(
|
||||
new Point(0.0, 0.0), radius,
|
||||
new Point(0.0, 0.0), radius/3.0,
|
||||
[const Color(0xFFFFFF00), const Color(0xFFFF0000)],
|
||||
null);
|
||||
null, TileMode.mirror);
|
||||
layerPaint.setShader(redYellow);
|
||||
})
|
||||
..addLayerOnTop(
|
||||
|
|
Loading…
Reference in a new issue