YmTextButton constructor

YmTextButton(
  1. String text, {
  2. required dynamic onClick()?,
  3. double fontSize = 14,
  4. Color textColor = const Color(0xFF666666),
  5. FontWeight fontWeight = FontWeight.normal,
  6. Size size = const Size(120, 42),
  7. bool isOutlined = false,
  8. bool isGradient = false,
  9. Color borderColor = const Color(0xFFCCCCCC),
  10. Color pressedBackgroundColor = const Color(0xFF606FFF),
  11. Color backgroundColor = const Color(0xFF3446F2),
  12. OutlinedBorder outlinedBorder = const RoundedRectangleBorder(),
  13. 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)]),
});