CustomSegmentControl constructor

const CustomSegmentControl({
  1. Key? key,
  2. required ValueChanged<bool> onOptionChange,
  3. required String option1Text,
  4. required String option2Text,
  5. Color? backgroundColor,
  6. Color? borderColor,
  7. double? fontSize,
  8. List<BoxShadow>? boxShadow,
  9. Curve? animationCurve,
  10. FontWeight? fontWeight,
  11. DecorationImage? option1DecorationImage,
  12. DecorationImage? option2DecorationImage,
  13. bool option2Selected = true,
  14. Color? option1SelectedColor = Colors.black,
  15. Color? option2SelectedColor = Colors.black,
})

Implementation

const CustomSegmentControl({
  super.key,
  required this.onOptionChange,
  required this.option1Text,
  required this.option2Text,
  this.backgroundColor,
  this.borderColor,
  this.fontSize,
  this.boxShadow,
  this.animationCurve,
  this.fontWeight,
  this.option1DecorationImage,
  this.option2DecorationImage,
  this.option2Selected = true,
  this.option1SelectedColor = Colors.black,
  this.option2SelectedColor = Colors.black,
});