BrowserStyleTabBar class

Inheritance

Constructors

BrowserStyleTabBar({Key? key, List<BrowserTab>? tabsState, BrowserStyleTabBarController? controller, TabPageBuilder? pageBuilder, bool showChrome = true, bool fillContent = false, bool lazyPages = false, EdgeInsets contentPadding = const EdgeInsets.all(24), bool scrollContent = true, Color? contentBackground, VoidCallback? onAddTab})
const

Properties

contentBackground Color?
Background of the content surface (defaults to the theme surface).
final
contentPadding EdgeInsets
Padding around the active page inside the content surface.
final
controller BrowserStyleTabBarController?
External state. When provided the widget does NOT own/dispose it, and the same instance is what pages see via BrowserStyleTabBarController.of.
final
fillContent bool
Let the content surface fill all available height (wrapped in an Expanded) instead of the default maxHeight: 440 cap. Use for a full-window workspace where each tab hosts a full screen.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lazyPages bool
When false (default) every tab's page is built once and kept mounted in an IndexedStack, so switching tabs preserves each page's state (scroll, input, controllers) with no rebuild. Set true to build only the active page (cheaper, but pages reset when revisited).
final
onAddTab VoidCallback?
Intercept the New-tab (+) button. When provided it is called instead of the controller's built-in add() (e.g. to open a real screen).
final
pageBuilder TabPageBuilder?
Optional custom content for each tab (active surface + hover preview). Falls back to the built-in GLTabPage when null.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollContent bool
Wrap the active page in a vertical SingleChildScrollView. Set false when the hosted page manages its own scrolling.
final
showChrome bool
Draw the outer bordered, rounded card around the strip + content. Set false to embed the bar edge-to-edge inside a larger app shell.
final
tabsState List<BrowserTab>?
Seed state used only when controller is null. Defaults to the JSX set.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<BrowserStyleTabBar>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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