Skip to content

Instantly share code, notes, and snippets.

@shubie
Created December 12, 2019 18:05
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 shubie/9a4c9eb9954c6cee67ef828ce21058b9 to your computer and use it in GitHub Desktop.
Save shubie/9a4c9eb9954c6cee67ef828ce21058b9 to your computer and use it in GitHub Desktop.
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