Skip to content

TabBarIndicatorSize

TabBarIndicatorSize #

Bases: Enum

Defines how the bounds of the selected tab indicator are computed.

LABEL = 'label' #

The tab's bounds are only as wide as the (centered) tab widget itself.

This value is used to align the tab's label, typically a [Tab] widget's text or icon, with the selected tab indicator.

TAB = 'tab' #

The tab indicator's bounds are as wide as the space occupied by the tab in the tab bar: from the right edge of the previous tab to the left edge of the next tab.