TabPanel class

Inheritance

Constructors

TabPanel({TabPanel? parent, List<TabPanel> panels = const <TabPanel>[], List<Tab> tabs = const <Tab>[], Axis axis = Axis.horizontal, required Widget defaultPage, double flex = 1, Widget? body})

Properties

axis Axis
The axis along which the child panel will be rendered
getter/setter pairinherited
body Widget?
getter/setter pairinherited
constraints BoxConstraints?
The layout constraints are used to check when to recalculate the sizes of the child panels
getter/setter pairinherited
context → ReactiveContext
Override this method to use a custom context.
no setterinherited
defaultPage Widget
Widget to display when a new tab is opened in this tab
getter/setter pairinherited
flex double
The initial flex factor to use when this panel is a child panel. Defaults to 1
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pairinherited
panels ↔ ObservableList<TabPanel>
Child panels
getter/setter pairinherited
panelSizes ↔ ObservableList<double>?
The sizes of the child panels
getter/setter pairinherited
parent TabPanel?
The parent panel
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedTab int
The index of the selected tab
getter/setter pairinherited
tabs ↔ ObservableList<Tab>
Tabs of this panel. Ignored if panels is not empty.
getter/setter pairinherited

Methods

acceptTab(Tab tab) → void
Move the dragged tab to this panel.
inherited
calculatePanelSizes(BoxConstraints constraints, double dividerWidth) → void
Calculates the sizes of the child panel when they change, or when the parent viewport dimensions change
inherited
closeLeft(String id) → void
Close all tabs to the left of the one with id. Locked tabs are not closed.
inherited
closeOtherTabs(String id) → void
Close all tabs other than the one having id. Locked tabs are not closed.
inherited
closePanel() → void
Close the panel including all its tabs
inherited
closeRight(String id) → void
Close all tabs to the right of the one with id. Locked tabs are not closed.
inherited
closeTab(String id) → void
Close the tab with the id. This does not respect the locked values
inherited
newTab({Widget? page, String tabId = '', TabPosition position = TabPosition.after}) → void
Open a new tab with page as the body.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pushPage({Widget? page, bool forceNewTab = false}) → void
Push a page to the current tab.
inherited
selectTab(String id) → void
inherited
splitPanel({required String panelId, String? tabId, Axis axis = Axis.horizontal, TabPosition? position}) → void
Splits the current panel in two, moving the tabs to the one specified by position
inherited
toString() String
A string representation of this object.
inherited
updateSize(int index, DragUpdateDetails dragDetails) → void
Resize the child panels when the user is draggin the using the panel dividers.
inherited
willAcceptTab(Tab? tab) bool
Callback to check if a dragged tab is acceptable by the current panel.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited