YmTabButton constructor

YmTabButton(
  1. String text, {
  2. required dynamic onClick(),
  3. Color textColor = const Color(0xFF666666),
  4. Color selectedTextColor = const Color(0xFFFFFFFF),
  5. double fontSize = 14,
  6. FontWeight fontWeight = FontWeight.normal,
  7. bool isSelected = false,
  8. Size size = const Size(80, 40),
  9. Color backgroundColor = const Color(0xFF818DFF),
  10. Color selectedBackgroundColor = const Color(0xFF3446F2),
  11. Color borderColor = Colors.transparent,
  12. Color selectedBorderColor = Colors.transparent,
  13. 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)),
});