AppGradientButton constructor

const AppGradientButton({
  1. Key? key,
  2. required String label,
  3. VoidCallback? onPressed,
  4. List<Color> gradientColors = const [Color(0xFF10BB76), Color(0xFF086D50)],
  5. AlignmentGeometry gradientBegin = Alignment.centerLeft,
  6. AlignmentGeometry gradientEnd = Alignment.centerRight,
  7. Color? textColor,
  8. double? width,
  9. double? height,
  10. double? radius,
  11. double? fontSize,
  12. FontWeight? fontWeight,
  13. bool isLoading = false,
  14. bool enabled = true,
  15. IconData? prefixIcon,
  16. IconData? suffixIcon,
  17. double? iconSize,
  18. List<double>? gradientStops,
  19. BoxShadow? shadow,
  20. bool enableDebounce = true,
  21. Duration debounceDuration = const Duration(milliseconds: 300),
  22. String? semanticLabel,
  23. bool? enableSecurity,
})

Implementation

const AppGradientButton({
  super.key,
  required this.label,
  this.onPressed,
  this.gradientColors = const [Color(0xFF10BB76), Color(0xFF086D50)],
  this.gradientBegin = Alignment.centerLeft,
  this.gradientEnd = Alignment.centerRight,
  this.textColor,
  this.width,
  this.height,
  this.radius,
  this.fontSize,
  this.fontWeight,
  this.isLoading = false,
  this.enabled = true,
  this.prefixIcon,
  this.suffixIcon,
  this.iconSize,
  this.gradientStops,
  this.shadow,
  this.enableDebounce = true,
  this.debounceDuration = const Duration(milliseconds: 300),
  this.semanticLabel,
  this.enableSecurity,
});