ButtonGroup constructor

const ButtonGroup({
  1. Key? key,
  2. required List<String> buttons,
  3. dynamic onTap(
    1. String button,
    2. int index
    )?,
  4. int selectedIndex = -1,
  5. Color textColor = const Color(0xff969799),
  6. Color textSelectedColor = Colors.white,
  7. Color color = Colors.white,
  8. Color selectedColor = const Color(0xFF1989FA),
  9. Color borderColor = const Color(0xffF2F3F5),
  10. Color borderSelectColor = const Color(0xFF1989FA),
  11. bool enable = true,
})

Implementation

const ButtonGroup({
  Key? key,
  required this.buttons,
  this.onTap,
  this.selectedIndex = -1,
  this.textColor = const Color(0xff969799),
  this.textSelectedColor = Colors.white,
  this.color = Colors.white,
  this.selectedColor = const Color(0xFF1989FA),
  this.borderColor = const Color(0xffF2F3F5),
  this.borderSelectColor = const Color(0xFF1989FA),
  this.enable = true
}) : super(key: key);