Slide 86
Slide 86 text
Buttons
@Composable
fun Button(
onClick: ()
- >
Unit,
modif
i
er: Modif
i
er = Modif
i
er,
backgroundColor: ComposeColor = AndromedaTheme.colors.primaryColors.active,
contentColor: ComposeColor = contentColorFor(backgroundColor = backgroundColor),
interactionSource: MutableInteractionSource = remember { MutableInteractionSource() },
elevation: ButtonElevation = ButtonDefaults.elevation(),
shape: Shape = AndromedaTheme.shapes.small,
border: BorderStroke? = null,
contentPadding: PaddingValues = ButtonDefaults.ContentPadding,
content: @Composable RowScope.()
- >
Unit
) {
. . .
}
@Composable
fun Button(
onClick: ()
modif
backgroundColor: ComposeColor = AndromedaTheme.colors.primaryColors.active,
contentColor: ComposeColor = contentColorFor(backgroundColor = backgroundColor),
interactionSource: MutableInteractionSource = remember { MutableInteractionSource() },
elevation: ButtonElevation = ButtonDefaults.elevation(),
shape: Shape = AndromedaTheme.shapes.small,
border: BorderStroke? = null,
contentPadding: PaddingValues = ButtonDefaults.ContentPadding,
content: @Composable RowScope.()
) {
Surface(
modif
shape = shape,
color = backgroundColor,
contentColor = contentColor,
border = border,