createButton static method

Widget createButton(
  1. dynamic onPress,
  2. dynamic title, {
  3. dynamic rate,
  4. dynamic noWidth = false,
  5. dynamic color,
  6. dynamic textColor = Colors.white,
  7. dynamic elevation = StyleCustom.elevation,
  8. dynamic borderColor = Colors.transparent,
  9. dynamic fontSize,
  10. dynamic padding,
  11. 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));