YmImageButton constructor
YmImageButton(
- String text, {
- String iconLeft = "",
- String iconRight = "",
- Color textColor = const Color(0xFFFFFFFF),
- double fontSize = 14,
- required dynamic onClick(),
- FontWeight fontWeight = FontWeight.normal,
- Size size = const Size(160, 42),
- bool isOutlined = false,
- Color borderColor = const Color(0xFF3446F2),
- Color pressedBackgroundColor = const Color(0xFF606FFF),
- Color backgroundColor = const Color(0xFF3446F2),
- OutlinedBorder outlinedBorder = const RoundedRectangleBorder(),
- 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,
});