I am getting the error messages "Cannot find a parameter with this name: modifier" and "Cannot find a parameter with this name: contentScale". The compiler is not giving me an option to import anything when I hover on the parameters. How can I resolve this?
@Composable
fun BirthdayGreetingWithImage(message: String, from: String) {
val image = painterResource(
id = R.drawable.androidparty,
modifier = Modifier.fillMaxHeight().fillMaxWidth(),
contentScale = ContentScale.Crop
)
modifier and contentScale needs to be used on an image, not on the painterResource itself. Try