📜  flutter shaderMask - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:05.887000             🧑  作者: Mango

代码示例1
ShaderMask(
  shaderCallback: (Rect bounds) {
    return RadialGradient(
      center: Alignment.topLeft,
      radius: 1.0,
      colors: [Colors.yellow, Colors.deepOrange.shade900],
      tileMode: TileMode.mirror,
    ).createShader(bounds);
  },
  child: const Text('I’m burning the memories'),
)