AppGradientButton constructor
const
AppGradientButton({
- Key? key,
- required String label,
- VoidCallback? onPressed,
- List<
Color> gradientColors = const [Color(0xFF10BB76), Color(0xFF086D50)], - AlignmentGeometry gradientBegin = Alignment.centerLeft,
- AlignmentGeometry gradientEnd = Alignment.centerRight,
- Color? textColor,
- double? width,
- double? height,
- double? radius,
- double? fontSize,
- FontWeight? fontWeight,
- bool isLoading = false,
- bool enabled = true,
- IconData? prefixIcon,
- IconData? suffixIcon,
- double? iconSize,
- List<
double> ? gradientStops, - BoxShadow? shadow,
- bool enableDebounce = true,
- Duration debounceDuration = const Duration(milliseconds: 300),
- String? semanticLabel,
- 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,
});