YmGradientButton constructor
YmGradientButton(
- String text, {
- double fontSize = 14,
- FontWeight fontWeight = FontWeight.normal,
- Color textColor = const Color(0xFF666666),
- Size size = const Size(120, 42),
- Color borderColor = Colors.transparent,
- Color pressedBackgroundColor = const Color(0xFF606FFF),
- OutlinedBorder outlinedBorder = const StadiumBorder(),
- Gradient gradient = const LinearGradient(colors: [const Color(0xFF606FFF), const Color(0xFF3446F2)]),
- required dynamic onClick(),
Implementation
YmGradientButton(
this.text, {
this.fontSize = 14,
this.fontWeight = FontWeight.normal,
this.textColor = const Color(0xFF666666),
this.size = const Size(120, 42),
this.borderColor = Colors.transparent,
this.pressedBackgroundColor = const Color(0xFF606FFF),
this.outlinedBorder = const StadiumBorder(),
this.gradient = const LinearGradient(colors: [const Color(0xFF606FFF), const Color(0xFF3446F2)]),
required this.onClick,
});