pillWidth property
double
get
pillWidth
Width of the resting pill, as UIKit sizes its tab buttons: wider than the spacing between tabs, so that neighbours overlap. For up to three tabs they overlap by 8pt and the bar hugs them (see naturalWidth); for more the bar fills its width and they overlap by 40pt in all for four tabs, 33pt for five (107.5pt for four tabs in 398pt, 84.6pt for five).
Beside a search tab's circle, UIKit's bar fills its width from three tabs on, overlapping them by 20pt in all for three and 22pt for four (113.3pt and 85.5pt in 328pt).
Implementation
double get pillWidth =>
((_size.width - _padding.horizontal + _overlap(_count, search: _search)) /
_count)
.clamp(0, _size.width);