proportionalWidth property

bool proportionalWidth
final

Determine whether segments have proportional widths based on their content.

If false, all segments will have the same width, determined by the longest segment. If true, each segment's width will be determined by its individual content.

If the max width of parent constraints is smaller than the width that the segmented control needs, The segment widths will scale down proportionally to ensure the segment control fits within the boundaries; similarly, if the min width of parent constraints is larger, the segment width will scales up to meet the min width requirement.

Defaults to false.

Implementation

final bool proportionalWidth;