Skip to content

Instantly share code, notes, and snippets.

@naimurhasan
Last active October 28, 2021 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naimurhasan/4a7fedf4bb074598e2aa2752aa20b96c to your computer and use it in GitHub Desktop.
Save naimurhasan/4a7fedf4bb074598e2aa2752aa20b96c to your computer and use it in GitHub Desktop.
ShaderMask(
blendMode: BlendMode.srcIn,
shaderCallback: (bounds) => LinearGradient(colors: [
curveAppBarColor,
Colors.green.shade900,
]).createShader(
Rect.fromLTWH(0, 0, bounds.width, bounds.height),
),
child: Text(String.fromCharCode(Icons.info.codePoint,), style: TextStyle(
fontFamily: Icons.add.fontFamily, fontSize: 30),
)),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment