gradientButton static method

Widget gradientButton({
  1. required String text,
  2. Color? textColor,
  3. double width = double.infinity,
  4. double? height,
  5. double radius = 20,
  6. double? fontSize,
  7. VoidCallback? onPressed,
  8. Gradient? gradient,
  9. Color? borderColor,
  10. FontWeight? fontWeight,
  11. List<BoxShadow>? boxShadows,
})

Implementation

static Widget gradientButton(
    {required String text,
    Color? textColor,
    double width = double.infinity,
    double? height,
    double radius = 20,
    double? fontSize,
    VoidCallback? onPressed,
    Gradient? gradient,
    Color? borderColor,
    FontWeight? fontWeight,
    List<BoxShadow>? boxShadows}) {
  return RaisedGradientButton(
      text: text,
      onPressed: onPressed,
      width: width,
      height: height,
      radius: radius,
      textColor: textColor,
      gradient: gradient,
      fontSize: fontSize,
      borderColor: borderColor,
      fontWeight: fontWeight,
      boxShadows: boxShadows);
}