DashedTile
fun DashedTile( modifier: Modifier = Modifier, strokeWidth: Float = 5.0f, intervals: FloatArray = floatArrayOf(10f, 10f), phase: Float = 0.0f, size: Dp = 115.dp, cornerRadius: Dp = 15.dp, containerColor: Color = MaterialTheme.colorScheme.primary, contentColor: Color = contentColorFor(containerColor), elevation: Dp = 0.dp, icon: ImageVector, iconSize: Dp = 65.dp, text: StringResource, fontWeight: FontWeight = FontWeight.Bold, textStyle: TextStyle = TextStyle.Default.merge(
color = contentColor,
fontWeight = fontWeight
), onClick: () -> Unit)
fun DashedTile( modifier: Modifier = Modifier, strokeWidth: Float = 5.0f, intervals: FloatArray = floatArrayOf(10f, 10f), phase: Float = 0.0f, size: Dp = 115.dp, cornerRadius: Dp = 15.dp, containerColor: Color = MaterialTheme.colorScheme.primary, contentColor: Color = contentColorFor(containerColor), elevation: Dp = 0.dp, icon: ImageVector, iconSize: Dp = 65.dp, text: String, fontWeight: FontWeight = FontWeight.Bold, textStyle: TextStyle = TextStyle.Default.merge(
color = contentColor,
fontWeight = fontWeight
), onClick: () -> Unit)
Tile component useful to execute action when clicked
Parameters
modifier
The modifier to apply to the container Card
strokeWidth
The stroke width to apply as dashed effect
intervals
The number of the interval from each part of the line
phase
The pixel offset for the intervals
size
The size of the tile
cornerRadius
The radius of the tile
containerColor
The colors scheme to apply to the tile
contentColor
The color of the content, icon and the text
elevation
The elevation of the tile
icon
The representative icon
iconSize
The size of the icon
text
The representative text
fontWeight
The weight to apply to the text
textStyle
The style to apply to the text
onClick
The action to execute when the tile has been clicked