customSignInButton static method
Implementation
static Widget customSignInButton(
String title, Color buttonColor, Function onPressed,
[Color fontColor = Colors.white,
double fontSize = 24.0,
IconData icon = Icons.mail]) {
return TextButton(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(buttonColor),
padding: MaterialStateProperty.all(
const EdgeInsets.symmetric(vertical: 12.0))),
onPressed: onPressed as void Function()?,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Icon(
icon,
color: fontColor,
size: fontSize,
),
const SizedBox(
width: 4.0,
),
Text(
title,
style: TextStyle(
color: fontColor,
),
),
],
),
);
}