FloatingToolbarDefaults
Contains default values used for the floating toolbar implementations.
Properties
Default collapsed elevation used for HorizontalFloatingToolbar and VerticalFloatingToolbar
Default collapsed elevation used for HorizontalFloatingToolbar and VerticalFloatingToolbar with FAB.
Default expanded elevation used for HorizontalFloatingToolbar and VerticalFloatingToolbar
Default expanded elevation used for HorizontalFloatingToolbar and VerticalFloatingToolbar with FAB.
Default shape used for HorizontalFloatingToolbar and VerticalFloatingToolbar
Default size used for HorizontalFloatingToolbar and VerticalFloatingToolbar container
Default padding used for HorizontalFloatingToolbar and VerticalFloatingToolbar when content are default size (24dp) icons in IconButton that meet the minimum touch target (48.dp).
Default offset from the edge of the screen used for HorizontalFloatingToolbar and VerticalFloatingToolbar.
A default threshold in Dp for the content's scrolling that defines when the toolbar should be collapsed or expanded.
Functions
Returns a default animation spec used for HorizontalFloatingToolbars and VerticalFloatingToolbars.
Returns a FloatingToolbarScrollBehavior. A floating toolbar that is set up with this FloatingToolbarScrollBehavior will immediately collapse when the content is pulled up, and will immediately appear when the content is pulled down.
This Modifier tracks vertical scroll events on the scrolling container that a floating toolbar appears above. It then calls onExpand and onCollapse to adjust the toolbar's state based on the scroll direction and distance.
Default enter transition used for HorizontalFloatingToolbar when expanding
Default exit transition used for HorizontalFloatingToolbar when shrinking
Creates a FloatingActionButton that represents a toolbar floating action button with standard colors.
Creates a FloatingToolbarColors that represents the default standard colors used in the various floating toolbars.
Default enter transition used for VerticalFloatingToolbar when expanding
Default exit transition used for VerticalFloatingToolbar when shrinking
Creates a FloatingActionButton that represents a toolbar floating action button with vibrant colors.
Creates a FloatingToolbarColors that represents the default vibrant colors used in the various floating toolbars.