YmTabButton constructor
YmTabButton(
- String text, {
- required dynamic onClick(),
- Color textColor = const Color(0xFF666666),
- Color selectedTextColor = const Color(0xFFFFFFFF),
- double fontSize = 14,
- FontWeight fontWeight = FontWeight.normal,
- bool isSelected = false,
- Size size = const Size(80, 40),
- Color backgroundColor = const Color(0xFF818DFF),
- Color selectedBackgroundColor = const Color(0xFF3446F2),
- Color borderColor = Colors.transparent,
- Color selectedBorderColor = Colors.transparent,
- BorderRadius borderRadius = const BorderRadius.horizontal(left: Radius.circular(2), right: Radius.circular(2)),
Implementation
YmTabButton(
this.text, {
required this.onClick,
this.textColor = const Color(0xFF666666),
this.selectedTextColor = const Color(0xFFFFFFFF),
this.fontSize = 14,
this.fontWeight = FontWeight.normal,
this.isSelected = false,
this.size = const Size(80, 40),
this.backgroundColor = const Color(0xFF818DFF),
this.selectedBackgroundColor = const Color(0xFF3446F2),
this.borderColor = Colors.transparent,
this.selectedBorderColor = Colors.transparent,
this.borderRadius = const BorderRadius.horizontal(left: Radius.circular(2), right: Radius.circular(2)),
});