GradientButton constructor
const
GradientButton({
- Key? key,
- required String text,
- required List<
Color> colors, - required VoidCallback onPressed,
- double borderRadius = 8.0,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
- TextStyle? textStyle,
- Alignment beginAlignment = Alignment.topLeft,
- Alignment endAlignment = Alignment.bottomRight,
Implementation
const GradientButton({
super.key,
required this.text,
required this.colors,
required this.onPressed,
this.borderRadius = 8.0,
this.padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
this.textStyle,
this.beginAlignment = Alignment.topLeft,
this.endAlignment = Alignment.bottomRight,
});