Tab Controller

The Tab Controller is a state management widget that coordinates a Tab Bar and a Tab View. It keeps track of the selected tab and ensures that the correct content is displayed.

Properties

Property
Description

dynamicList

A list of data that can be used to dynamically generate the tabs.

initialIndex

The index of the tab that should be selected initially.

onTabChange

An action to trigger when the selected tab changes.


Default Properties

The Tab Controller widget supports all three sections of default properties:

Layout

  • width

  • height

  • padding

  • margin

  • align

Appearance

  • bgColor

  • borderRadius

  • border

    • borderWidth

    • borderColor

    • borderType (e.g., solid, dashed)

    • strokeAlign

Interactions

  • onClick — Used to add actions to the Tab Controller widget.

Last updated