LiquidShellScopeData class

What the nearest LiquidShell tells its body.

Annotations

Constructors

LiquidShellScopeData({required LiquidSizeClass sizeClass, required LiquidChromeKind chromeKind, required EdgeInsets chromeInsets, required bool sidebarVisible, required ValueSetter<bool> setSidebarVisible, bool nativeChrome = false, LiquidWindowControls windowControls = LiquidWindowControls.zero, LiquidSearchPhase? searchPhase, bool nativePageBar = false, bool nativeSearchScopes = false, List<String>? searchScopes})
Creates scope data.
const
LiquidShellScopeData.none({LiquidWindowControls windowControls = LiquidWindowControls.zero})
No shell: compact, hidden chrome, zero insets, no sidebar. Window controls belong to the window, not the shell, so they pass through.
factory

Properties

chromeInsets → EdgeInsets
The part of the body covered by chrome, from the body's edges.
final
chromeKind → LiquidChromeKind
The chrome on screen.
final
hashCode → int
The hash code for this object.
no setteroverride
nativeChrome → bool
Whether the platform draws the chrome (native chrome on an iOS 26 iPhone or iPad). The insets then come from the platform's safe area: at regular width chromeInsets top is the top padding while the native top bar shows; at compact width (a narrow iPad window, or an iPhone) chromeInsets bottom is the bottom padding while the native floating tab bar shows. On an iPhone Duo the kind is verticalBar and chromeInsets is the vertical bar's side.
final
nativePageBar → bool
The pages of this shell use the platform's navigation bar (iOS 26 native chrome, on every tab): LiquidPage draws only its child. The bar is hidden on a tab whose pages do not use LiquidPage, and over a root page that shows no title row.
final
nativeSearchScopes → bool
Native chrome draws the search scopes (iOS 26+): LiquidSearchScopeBar builds nothing. Also true while native chrome is about to engage (no chrome is drawn yet), so the bar never shows for a frame and then vanishes.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchPhase → LiquidSearchPhase?
The search tab's phase; null when the shell has no search tab.
final
searchScopes → List<String>?
The shell's LiquidSearch.scopes; null without scopes or a shell search.
final
setSidebarVisible → ValueSetter<bool>
Shows or hides the sidebar. Ignored in compact (logged in debug).
final
sidebarVisible → bool
Whether the sidebar is shown.
final
sizeClass → LiquidSizeClass
Compact or regular.
final
windowControls → LiquidWindowControls
The iPadOS 26 window controls, zero elsewhere (always zero on an iPhone). Zero while nativeChrome is true at regular width, where the native top bar and sidebar make room for them, and while a native navigation bar shows (the search tab's, or a page's). Under the native compact bar, which sits at the bottom, on a tab whose navigation bar is hidden, they are the real cluster; so they are while LiquidHideChrome hides the native top bar and sidebar. Rows at the top of a page clear them with LiquidWindowControlsClearance.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
Field by field, except setSidebarVisible. The setter is an action, not state: pages depend on what the shell shows, so equality covers the values only. Two scopes that show the same thing are equal whatever function they carry, e.g. LiquidShellScopeData.none and data built with any other setter (closures equal only themselves).
override