YmTextButton constructor
YmTextButton(
- String text, {
- required dynamic onClick()?,
- double fontSize = 14,
- Color textColor = const Color(0xFF666666),
- FontWeight fontWeight = FontWeight.normal,
- Size size = const Size(120, 42),
- bool isOutlined = false,
- bool isGradient = false,
- Color borderColor = const Color(0xFFCCCCCC),
- Color pressedBackgroundColor = const Color(0xFF606FFF),
- Color backgroundColor = const Color(0xFF3446F2),
- OutlinedBorder outlinedBorder = const RoundedRectangleBorder(),
- LinearGradient gradient = const LinearGradient(colors: [const Color(0xFF606FFF), const Color(0xFF3446F2)]),
Implementation
YmTextButton(
this.text, {
required this.onClick,
this.fontSize = 14,
this.textColor = const Color(0xFF666666),
this.fontWeight = FontWeight.normal,
this.size = const Size(120, 42),
this.isOutlined = false,
this.isGradient = false,
this.borderColor = const Color(0xFFCCCCCC),
this.pressedBackgroundColor = const Color(0xFF606FFF),
this.backgroundColor = const Color(0xFF3446F2),
this.outlinedBorder = const RoundedRectangleBorder(),
this.gradient = const LinearGradient(colors: [const Color(0xFF606FFF), const Color(0xFF3446F2)]),
});