Last active
May 2, 2020 00:38
-
-
Save HansMuller/60e4ab419ac175a2da04f34152928acd to your computer and use it in GitHub Desktop.
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
| Widget TextButtonTheme.fromColor({ Color color, Widget child }) { | |
| return TextButtonTheme( | |
| data: TextButtonThemeData( | |
| style: TextButton.styleFrom(primary: color), | |
| ), | |
| child: child, | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment