createButton static method
Widget
createButton(
- dynamic onPress,
- dynamic title, {
- dynamic rate,
- dynamic noWidth = false,
- dynamic color,
- dynamic textColor = Colors.white,
- dynamic elevation = StyleCustom.elevation,
- dynamic borderColor = Colors.transparent,
- dynamic fontSize,
- dynamic padding,
- dynamic fontWeight = FontWeight.bold,
Implementation
static Widget createButton(onPress, title, {rate, noWidth = false,
color, textColor = Colors.white,
elevation = StyleCustom.elevation, borderColor = Colors.transparent,
fontSize, padding, fontWeight = FontWeight.bold}) => Container(padding: padding??EdgeInsets.zero,
width: noWidth?null:(rate??1.sw),
child: createCustomButton(onPress, title, color: color??StyleCustom.buttonColor, textColor: textColor,
borderColor: borderColor, fontWeight: fontWeight, fontSize: fontSize));