GradientButton constructor

const GradientButton({
  1. Key? key,
  2. required void onTap()?,
  3. String text = "",
  4. Size? size,
  5. Widget? child,
  6. EdgeInsets? padding,
  7. Color? backgroundColor,
  8. Color? foregroundColor = Colors.white,
  9. BoxBorder? border,
  10. double? elevation,
  11. Gradient? gradient,
})

Implementation

const GradientButton(
    {Key? key,
    required this.onTap,
    this.text = "",
    this.size,
    this.child,
    this.padding,
    this.backgroundColor,
    this.foregroundColor = Colors.white,
    this.border,
    this.elevation,
    this.gradient})
    : super(key: key);