KSegmentView constructor
const
KSegmentView(
- List<
String> segments, - CardBuilder flipBuilder, {
- Key? key,
- SegmentPos initialSelected = SegmentPos.left,
- Size boundary = Size.zero,
- Color backgroundColor = Colors.black87,
- Color borderColor = Colors.white,
- TextStyle titleStyle = const TextStyle(fontSize: 15, color: Colors.white),
- double borderRadius = 25,
- double borderThick = 2,
- ValueChanged<
SegmentPos> ? onChanged,
Implementation
const KSegmentView(
this.segments,
this.flipBuilder, {
Key? key,
this.initialSelected = SegmentPos.left,
this.boundary = Size.zero,
this.backgroundColor = Colors.black87,
this.borderColor = Colors.white,
this.titleStyle = const TextStyle(fontSize: 15, color: Colors.white),
this.borderRadius = 25,
this.borderThick = 2,
this.onChanged,
}) : assert(segments.length >= 2),
super(key: key);