ButtonKitGradient constructor
const
ButtonKitGradient({})
Creates a ButtonKitGradient. Required parameters:
text: The button label text.textColor: Color for the label text.bgColor1,bgColor2: Gradient colors (start and end).press: Callback when button is pressed.radius: Border radius of the gradient container (defaults to 10.0).textSize: Font size for the label (defaults to 12.0).width: Width of the button (defaults todouble.infinity).height: Height of the button (defaults to 25.0).weight: FontWeight for the label (defaults toFontWeight.w500).elevation: Elevation for the inner ElevatedButton (defaults to 0.0).align: Text alignment for the TextKit label (defaults toTextAlign.center).
Implementation
const ButtonKitGradient({
super.key,
required this.text,
required this.textColor,
required this.bgColor1,
required this.bgColor2,
required this.press,
this.radius,
this.textSize,
this.width,
this.height,
this.weight,
this.elevation,
this.align,
});