CustomSegmentControl constructor
const
CustomSegmentControl({
- Key? key,
- required ValueChanged<
bool> onOptionChange, - required String option1Text,
- required String option2Text,
- Color? backgroundColor,
- Color? borderColor,
- double? fontSize,
- List<
BoxShadow> ? boxShadow, - Curve? animationCurve,
- FontWeight? fontWeight,
- DecorationImage? option1DecorationImage,
- DecorationImage? option2DecorationImage,
- bool option2Selected = true,
- Color? option1SelectedColor = Colors.black,
- 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,
});