ButtonFieldAppearance

data class ButtonFieldAppearance(val buttonStyle: ButtonFieldAppearance.ButtonStyle = ButtonStyle.BUTTON, val buttonColors: ButtonColors? = null, val textStyle: TextStyle? = null, val padding: PaddingValues? = null, val horizontalArrangement: Arrangement.Horizontal = Arrangement.End, val verticalAlignment: Alignment.Vertical = Alignment.Top, val width: ButtonFieldAppearance.ButtonWidth = ButtonWidth.WRAP_CONTENT, val shape: Shape? = null, val icon: PainterRes? = null, val iconSize: DpSize = DpSize(width = 24.dp, height = 24.dp), val spacerWidth: Dp = 8.dp)

Button field appearance

Constructors

Link copied to clipboard
constructor(buttonStyle: ButtonFieldAppearance.ButtonStyle = ButtonStyle.BUTTON, buttonColors: ButtonColors? = null, textStyle: TextStyle? = null, padding: PaddingValues? = null, horizontalArrangement: Arrangement.Horizontal = Arrangement.End, verticalAlignment: Alignment.Vertical = Alignment.Top, width: ButtonFieldAppearance.ButtonWidth = ButtonWidth.WRAP_CONTENT, shape: Shape? = null, icon: PainterRes? = null, iconSize: DpSize = DpSize(width = 24.dp, height = 24.dp), spacerWidth: Dp = 8.dp)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

If null, the ButtonDefaults.buttonColors(), ButtonDefaults.outlinedButtonColors() or ButtonDefaults.textButtonColors() (depends on ButtonStyle) will be used in the default ButtonField(StrRes, ButtonFieldAppearance, () -> Unit, Boolean)

Link copied to clipboard
Link copied to clipboard

is not handled if icon is null

Link copied to clipboard

If null, the PaddingValues(horizontal = LocalPaddings.current.defaultPadding) will be used in the default ButtonField(StrRes, ButtonFieldAppearance, () -> Unit, Boolean)

Link copied to clipboard
val shape: Shape?

If null, the RectangleShape will be used if width is ButtonWidth.FULL in other cases MaterialTheme.shapes.small will be used in the default ButtonField(StrRes, ButtonFieldAppearance, () -> Unit, Boolean)

Link copied to clipboard

is not handled if icon is null

Link copied to clipboard

If null, the LocalTextStyle.current will be used in the default ButtonField(StrRes, ButtonFieldAppearance, () -> Unit, Boolean)

Link copied to clipboard