dashedBorder
Modify element to add border with appearance specified with a border and a shape, pad the content by the BorderStroke.width and clip it.
Parameters
BorderStroke class that specifies border appearance, such as size and color
shape of the border
Samples
androidx.compose.foundation.samples.BorderSampleReturns a Modifier that adds border with appearance specified with width, color and a shape, pads the content by the width and clips it.
Parameters
width of the border. Use Dp.Hairline for a hairline border.
color to paint the border with
shape of the border
the size of the solid part of the dashes
the size of the space between dashes
Returns a Modifier that adds border with appearance specified with width, brush and a shape, pads the content by the width and clips it.
Parameters
width of the border. Use Dp.Hairline for a hairline border.
brush to paint the border with
shape of the border