GradientButton

fun GradientButton(text: String, onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, brush: Brush = Brush.horizontalGradient( listOf( MaterialTheme.colorScheme.primary, MaterialTheme.colorScheme.tertiary, ), ), shape: Shape = RoundedCornerShape(12.dp))

Botón con fondo degradado.

Parameters

text

Texto del botón.

onClick

Acción al pulsar.

brush

Degradado de fondo; por defecto va de primary a tertiary del tema.

shape

Forma del botón.