Tile
fun Tile( modifier: Modifier = Modifier, size: Dp = 115.dp, shape: Shape = RoundedCornerShape(
size = 15.dp
), containerColor: Color = MaterialTheme.colorScheme.primary, contentColor: Color = contentColorFor(containerColor), elevation: Dp = 3.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 Tile( modifier: Modifier = Modifier, size: Dp = 115.dp, shape: Shape = RoundedCornerShape(
size = 15.dp
), containerColor: Color = MaterialTheme.colorScheme.primary, contentColor: Color = contentColorFor(containerColor), elevation: Dp = 3.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
size
The size of the tile
shape
The shape 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