FloatingActionButton
Material Design floating action button.
The FAB represents the most important action on a screen. It puts key actions within reach.
FAB typically contains an icon, for a FAB with text and an icon, see ExtendedFloatingActionButton.
Parameters
called when this FAB is clicked
the Modifier to be applied to this FAB
defines the shape of this FAB's container and shadow (when using elevation)
the color used for the background of this FAB. Use Color.Transparent to have no color.
the preferred color for content inside this FAB. Defaults to either the matching content color for containerColor, or to the current LocalContentColor if containerColor is not a color from the theme.
FloatingActionButtonElevation used to resolve the elevation for this FAB in different states. This controls the size of the shadow below the FAB. Additionally, when the container color is ColorScheme.surface, this controls the amount of primary color applied as an overlay. See also: Surface.
an optional hoisted MutableInteractionSource for observing and emitting Interactions for this FAB. You can use this to change the FAB's appearance or preview the FAB in different states. Note that if null
is provided, interactions will still happen internally.
the content of this FAB, typically an Icon