ButtonDefaults
object ButtonDefaults
Summary
Public functions |
|
|---|---|
ButtonColors |
|
ButtonColors |
|
ButtonColors |
Alternative |
Public functions
MaterialScope.filledButtonColors
fun MaterialScope.filledButtonColors(): ButtonColors
ButtonColors for the high-emphasis button representing the primary, most important or most common action on a screen.
These colors are using ColorScheme.primary for background color and ColorScheme.onPrimary for content color from the given MaterialScope's ColorScheme.
MaterialScope.filledTonalButtonColors
fun MaterialScope.filledTonalButtonColors(): ButtonColors
ButtonColors for the medium-emphasis button.
These colors are using ColorScheme.surfaceContainer for background color, ColorScheme.onSurface for content color and ColorScheme.primary for icon from the given MaterialScope's ColorScheme.
MaterialScope.filledVariantButtonColors
fun MaterialScope.filledVariantButtonColors(): ButtonColors
Alternative ButtonColors for the high-emphasis button.
These colors are using ColorScheme.primaryContainer for background color and ColorScheme.onPrimaryContainer for content color from the given MaterialScope's ColorScheme.