Traté de importar el ícono proporcionado por Google Font de acuerdo con las indicaciones de Google Font, pero descubrí que no podía importar el ícono de la torta en mi EditText. ¿Puedes echar un vistazo a lo que está pasando? ¡Muchas gracias!
@Composable fun ShowTextField(context:Context){ var text by remember { mutableStateOf("") } TextField(value = text , onValueChange = {text = it},text label = { Text(text = "birthday")}, leadingIcon = @Composable{ Image( imageVector = Icons.Filled.Cake, contentDescription = "cake", modifier = Modifier.clickable { Toast.makeText( context, "Your Birthday:${text}", Toast.LENGTH_SHORT ).show() } ) } ) } @Composable fun ShowTextField(context:MainActivity){ var text by remember { mutableStateOf("") } TextField(value = text, onValueChange = {text = it}, label = { Text(text = "birthday")}, leadingIcon = @Composable{ Icon( painterResource(R.drawable.cake), contentDescription = "cake", modifier = Modifier.clickable { Toast.makeText( context, "Your Birthday:${text}", Toast.LENGTH_SHORT ).show() } ) } ) }