InfoCard

fun InfoCard(modifier: Modifier = Modifier, text: String, image: String, contentColor: Color = Color.Gray, style: TextStyle = MaterialTheme.typography.bodySmall)

Author: @Jeluchu

Component displaying information on a custom-designed card

Parameters

modifier

Modifier modifier that will be used to change the color, size...

text

String for text to be displayed on the card

image

String for image to be displayed on the card

contentColor

Color color of text that appears on Card

style

TextStyle is used to customize the style of text displayed


fun InfoCard(modifier: Modifier = Modifier, text: String, @DrawableRes icon: Int, color: Color = Color.Gray, tint: Color = Color.White, style: TextStyle = MaterialTheme.typography.bodySmall)

Author: @Jeluchu

Component displaying information on a custom-designed card

Parameters

modifier

Modifier modifier that will be used to change the color, size...

text

String text to be displayed on the card

icon

DrawableRes drawable id of the resource you want to be displayed as an icon on Card

tint

Color color of the icon displayed on Card