Skip to main content

StepperStyle

Options to customize the appearance of the Stepper.

class StepperStyle

Properties

width

width: Float? = nil

The width of the control.


height

height: Float? = nil

The height of the control.


buttons_position

buttons_position: ButtonsPosition = ButtonsPosition.left_right

The position of the arrows relative to the value. See ButtonsPosition for more details.


spacing

spacing: Float = 2

The space between the arrows and the value display.


buttons_style

buttons_style: PrevNextButtonsStyle = default_previous_next_buttons_style

The style for the double arrows.

See PrevNextButtonsStyle


value_padding

value_padding: EdgeInsets = EdgeInsets(5)

Extra space to add around the image that still counts as interactive area.


value_style

value_style: LabelStyle = default_value_style

Customization for the value appearance.


label_style

label_style: LabelStyle = default_label_style

Customization for the label appearance.


disabled_opacity

disabled_opacity: Float = 0.24

The opacity to use when the control is disabled.

Methods

copy

copy() -> (StepperStyle)

Returns a shallow copy (nested reference objects aren't copied).


deep_copy

deep_copy() -> (StepperStyle)

Returns a deep copy (includes copies of inner_padding and label_style).


overriding

overriding(_ modify: (StepperStyle) -> ()) -> (StepperStyle)

Returns a modified copy of the style. Modify the copy inside the modify funtion.

var modified = (StepperStyle()).overriding(fun (style) {
style.spacing = 8
})