SurfaceDefaults


public static class SurfaceDefaults


Default values used for surface.

Summary

Public fields

static @NonNull SurfaceDefaults

Public methods

final @NonNull BorderStroke

Create the default BorderStroke used for a surface.

final @NonNull BorderStroke

Create the default BorderStroke used for a surface, with optional overrides for width and color.

Public fields

INSTANCE

Added in 1.0.0-alpha01
public static @NonNull SurfaceDefaults INSTANCE

Public methods

border

Added in 1.0.0-alpha01
@Composable
public final @NonNull BorderStroke border()

Create the default BorderStroke used for a surface. Use the other overload in order to change the width or color.

border

Added in 1.0.0-alpha01
@Composable
public final @NonNull BorderStroke border(@NonNull Dp width, @NonNull Color color)

Create the default BorderStroke used for a surface, with optional overrides for width and color.

Parameters
@NonNull Dp width

width of the border in Dp. Use Dp.Hairline for one-pixel border.

@NonNull Color color

color to paint the border with