SearchBarDefaults
Defaults used in SearchBar and DockedSearchBar.
Properties
Default padding used for AppBarWithSearch content
Default shape for a DockedSearchBar.
Default shape for a SearchBar in the expanded state.
Default window insets used and consumed by ExpandedFullScreenSearchBar.
Default height for a search bar's input field, or a search bar in the unexpanded state.
Default shape for a search bar's input field, or a search bar in the unexpanded state.
Default shadow elevation for a search bar.
Default tonal elevation for a search bar.
Default window insets for an AppBarWithSearch.
Functions
Creates an AppBarWithSearchColors that represents the different colors used in parts of the AppBarWithSearch.
Creates a SearchBarColors that represents the different colors used in parts of the search bar.
Returns a SearchBarScrollBehavior. A search bar that is set up with this behavior will immediately scroll upward off-screen when the content is pulled up, and will immediately appear when the content is pulled down.
A text field to input a query in a search bar.
Creates a TextFieldColors that represents the different colors used in the search bar input field in different states.