Created
December 12, 2019 18:05
-
-
Save shubie/9a4c9eb9954c6cee67ef828ce21058b9 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
MaterialButton viewMoreButtons(String title, Function fun) { | |
return MaterialButton( | |
onPressed: fun, | |
textColor: Colors.white, | |
color: const Color(0xffFFAC38), | |
child: SizedBox( | |
width: double.infinity, | |
child: Text( | |
title, | |
textAlign: TextAlign.left, | |
), | |
), | |
height: 55, | |
minWidth: 700, | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.only( | |
topLeft: Radius.circular(20), topRight: Radius.circular(20))), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment