PreviewLabState
class PreviewLabState(initialContentOffset: Offset = Offset.Zero, initialContentScale: Float = 1.0f, initialIsInspectorPanelVisible: Boolean = true)
Class that holds the state of PreviewLab. Mainly holds state values that have changed due to user interaction during debugging.
Properties
Link copied to clipboard
The current pan offset of the preview content. Controls the x/y translation of the preview content for panning.
Link copied to clipboard
The current zoom scale of the preview content. Controls the zoom level for inspecting UI details. Values greater than 1.0 zoom in, values less than 1.0 zoom out.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Controls whether the inspector panel is visible. When true, the inspector panel (Fields, Events, and additional tabs) is shown on the right side.
Link copied to clipboard
The currently selected tab index in the inspector panel. Null when no tab is selected. The index corresponds to the position in the combined list of default tabs and additional tabs.