ThemeGradientButton constructor

const ThemeGradientButton({
  1. Key? key,
  2. double? height = 45,
  3. double? width = double.infinity,
  4. required Gradient gradient,
  5. double radius = 25,
  6. bool isEnable = true,
  7. VoidCallback? onPressed,
  8. String text = "",
  9. double fontSize = 16,
  10. Color textColor = Colors.white,
  11. EdgeInsetsGeometry? padding,
  12. FontWeight? fontWeight,
})

Implementation

const ThemeGradientButton({
  Key? key,
  this.height = 45,
  this.width = double.infinity,
  required this.gradient,
  this.radius = 25,
  this.isEnable = true,
  this.onPressed,
  this.text = "",
  this.fontSize = 16,
  this.textColor = Colors.white,
  this.padding,
  this.fontWeight,
}) : super(key: key);