BaseSegmentBar constructor
BaseSegmentBar({
- required List<
String> titleNames, - required dynamic onSelectChanged(),
- Color defaultColor = Colors.white,
- Color? selectedColor,
- double textSize = 14,
- double itemHeight = 30,
- double itemWidth = 110,
- double borderWidth = 1,
- Color? borderColor,
- double radius = 5,
- int selectIndex = 0,
- EdgeInsetsGeometry margin = const EdgeInsets.only(top: 5, bottom: 5),
Implementation
BaseSegmentBar(
{required this.titleNames,
required this.onSelectChanged,
this.defaultColor = Colors.white,
this.selectedColor,
this.textSize = 14,
this.itemHeight = 30,
this.itemWidth = 110,
this.borderWidth = 1,
this.borderColor,
this.radius = 5,
this.selectIndex = 0,
this.margin = const EdgeInsets.only(top: 5, bottom: 5)});