ShaderMask
A widget that applies a mask generated by a Shader to its child.
For example, ShaderMask can be used to gradually fade out the edge of a child by using a new ui.Gradient.linear mask.
ShaderMask(
shaderCallback: (Rect bounds) {
return RadialGradient(
center: Alignment.topLeft,
radius: 1.0,
colors: <Color>[Colors.yellow, Colors.deepOrange.shade900],
tileMode: TileMode.mirror,
).createShader(bounds);
},
child: const Text('I’m burning the memories'),
)