SearchBarBehavior class abstract final

What Compose's SearchBar sets in code (behavior.yaml, verified at the pin).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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
The equality operator.
inherited

Constants

appBarHorizontalPadding → const Dp
A search app bar's padding before its navigation icon and after its actions (AppBarWithSearchHorizontalPadding). (SearchBar.kt line 4157.)
appBarVerticalPadding → const Dp
The vertical padding around the search bar inside a search app bar, and above the contained search view's field (AppBarWithSearchVerticalPadding). (SearchBar.kt line 4159.)
asTopBarPadding → const Dp
The horizontal padding around the search bar inside a search app bar (SearchBarAsTopBarPadding). (SearchBar.kt line 4155.)
collapseMotion → const ExpressiveMotionKey
The spring the full-screen search view collapses back into the bar on (rememberSearchBarState's animationSpecForCollapse). (SearchBar.kt line 1634.)
expandMotion → const ExpressiveMotionKey
The spring the search bar expands into the full-screen search view on (rememberSearchBarState's animationSpecForExpand). (SearchBar.kt line 1633.)
fullScreenExpandedHorizontalPadding → const Dp
The contained full-screen search view's horizontal padding around its input field (FullScreenExpandedHorizontalPadding). (SearchBar.kt line 4165.)
iconOffsetX → const Dp
How far the input field's leading and trailing icons move inwards from a text field's, for the search bar's 16dp icon margins (SearchBarIconOffsetX). (SearchBar.kt line 4179.)
maxWidth → const Dp
The search bar's greatest width (SearchBarMaxWidth). (SearchBar.kt line 4173.)
minWidth → const Dp
The search bar's least width, where the space allows (SearchBarMinWidth). (SearchBar.kt line 4171.)
predictiveBackMaxOffsetY → const Dp
The furthest the shrinking search view follows the finger vertically during a predictive back gesture (SearchBarPredictiveBackMaxOffsetY). (SearchBar.kt line 4185.)
predictiveBackMinMargin → const Dp
The least margin the search view keeps to the screen's edges while a predictive back gesture shrinks it (SearchBarPredictiveBackMinMargin). (SearchBar.kt line 4182.)
verticalPadding → const Dp
The full-screen search view's padding above (uncontained) and below its input field (SearchBarVerticalPadding). (SearchBar.kt line 4175.)