Bienvenido

Card

CardExample

Ejemplo Basico

import androidx.compose.ui.graphics.Color

@Preview
@Composable
fun CardDemo(){
    Card(

    ){
        Column(){
            Text(
                buildAnnotatedString{
                    append("welcome to ")
                    withStyle(style= SpanStyle(fontWeight = FontWeight.W900,color= Color(0xFF4552B8))){
                        append("Jetpack Compose Playground")
                    }
                }
            )
            Text(text="Mas Texto")
        }
    }
}

Ejemplo completo Pongo este ejemplo completo porque es clickable

@Composable
fun CardDemo() {
    Card(
        modifier = Modifier
            .fillMaxWidth()
            .padding(15.dp)
            .clickable{ },  
        elevation = 10.dp
    ) {
        Column(
            modifier = Modifier.padding(15.dp)
        ) {
            Text(
                buildAnnotatedString {
                    append("welcome to ")
                    withStyle(style = SpanStyle(fontWeight = FontWeight.W900, color = Color(0xFF4552B8))
                    ) {
                        append("Jetpack Compose Playground")
                    }
                }
            )
            Text(
                buildAnnotatedString {
                    append("Now you are in the ")
                    withStyle(style = SpanStyle(fontWeight = FontWeight.W900)) {
                        append("Card")
                    }
                    append(" section")
                }
            )
        }
    }
}