FUITabPane
Usage
Here's a typical usage example for FUITab and FUITabItem:
The FUITabPane by default has a maximum height of 300. Kindly modify the height setting to align with your specific requirements. An unbounded height may result in unpredictable outcomes.
Changing the position of the tabs head
The position of the tab items head could be changed via fuiTabHeadPosition:
Changing the tab head label alignment
By default, the item head label is positioned at the center. Alignment can be customized as follows:
Content Display Animation
The FUITabPane natively supports a range of animation types when tab content is switched and displayed. The default animation type is a fade-in effect.
Please refer to the FUIAnimationType enum for further details.
To change the animation type and duration for content display
Callback after tab content display and after animation rendered
If necessary, the FUITabPane could execute a callback once the animation of the content display is rendered.
With controller
Programmatic control of tab item switching is possible.
Initialize the FUITabPaneController
Do this in a Stateful Widget.
Switching tabs via controller
Parameters
Parameters | Description |
|---|---|
List\<FUITabItem\> fuiTabItems | The list of tab item widgets. |
FUITabPaneController? fuiTabPaneController | The tab pane controller for switching tabs programmatically. |
FUITabHeadPosition fuiTabHeadPosition | The position of the tab head where the label is displayed. It can be configured with values from |
FUITabHeadLabelAlignment fuiTabHeadLabelAlignment | The alignment of the tab head label - left, center, right. Can be configures with values from |
FUIAnimationType? contentDisplayAniType | The animation type for displaying tab content when switched. For no animation, just set to |
Duration? contentDisplayAniDuration | The animation duration for displaying content when switching. |