YmImageButton constructor

YmImageButton(
  1. String text, {
  2. String iconLeft = "",
  3. String iconRight = "",
  4. Color textColor = const Color(0xFFFFFFFF),
  5. double fontSize = 14,
  6. required dynamic onClick(),
  7. FontWeight fontWeight = FontWeight.normal,
  8. Size size = const Size(160, 42),
  9. bool isOutlined = false,
  10. Color borderColor = const Color(0xFF3446F2),
  11. Color pressedBackgroundColor = const Color(0xFF606FFF),
  12. Color backgroundColor = const Color(0xFF3446F2),
  13. OutlinedBorder outlinedBorder = const RoundedRectangleBorder(),
  14. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
})

Implementation

YmImageButton(
  this.text, {
  this.iconLeft = "",
  this.iconRight = "",
  this.textColor = const Color(0xFFFFFFFF),
  this.fontSize = 14,
  required this.onClick,
  this.fontWeight = FontWeight.normal,
  this.size = const Size(160, 42),
  this.isOutlined = false,
  this.borderColor = const Color(0xFF3446F2),
  this.pressedBackgroundColor = const Color(0xFF606FFF),
  this.backgroundColor = const Color(0xFF3446F2),
  this.outlinedBorder = const RoundedRectangleBorder(),
  this.mainAxisAlignment = MainAxisAlignment.center,
});