BrowserStyleTabBar class
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 setter inherited
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
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 setter inherited
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
geniuslink_design_system 2.8.1