Created
September 10, 2020 21:03
-
-
Save BKinya/a935a1f242cb4146b28f0f1ea3a0280b to your computer and use it in GitHub Desktop.
This file contains 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 buildCard(String message) { | |
return Card( | |
color: Colors.white70, | |
child: Container( | |
padding: EdgeInsets.all(10.0), | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.spaceBetween, | |
crossAxisAlignment: CrossAxisAlignment.center, | |
children: <Widget>[ | |
Text(message, | |
style: new TextStyle( | |
fontSize: 20.0, | |
fontWeight: FontWeight.bold, | |
)), | |
Icon( | |
Icons.favorite, | |
color: Colors.redAccent, | |
size: 50.0, | |
) | |
], | |
), | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment