Skip to content

Instantly share code, notes, and snippets.

@yumi0629
Last active December 21, 2018 02:44
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 yumi0629/2bb21d5df5fd3bb3ca7dbe7e34ff435b to your computer and use it in GitHub Desktop.
Save yumi0629/2bb21d5df5fd3bb3ca7dbe7e34ff435b to your computer and use it in GitHub Desktop.
ShaderMask(
blendMode: BlendMode.srcIn,
shaderCallback: (Rect bounds) {
return ui.Gradient.linear(
Offset(4.0, 24.0),
Offset(24.0, 4.0),
[
Colors.blue[200],
Colors.amber,
],
);
},
child: Icon(Icons.ac_unit,size: 50.0,),
) ,
@yumi0629
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment