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( 'ShaderMask', style: TextStyle(fontSize: 30, color: Colors.white), ), )