Created
March 17, 2020 05:08
-
-
Save digitaljoni/354e35fe2f249ba23d58a2720cc69cc1 to your computer and use it in GitHub Desktop.
Sample Use of Gradient Icon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class IconSample extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return GradientIcon( | |
| Icons.add_alert, | |
| 50.0, | |
| LinearGradient( | |
| colors: <Color>[ | |
| Colors.red, | |
| Colors.yellow, | |
| Colors.blue, | |
| ], | |
| begin: Alignment.topLeft, | |
| end: Alignment.bottomRight, | |
| ), | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment