Change an image of a called composable in Jetpack compose
A question, maybe a little basic since I am in an early learning phase.
If I want to change the image of a composable when calling it, how would I do it?
I know that this is possible with Int and Strings thanks to the parameters that I define in the original function, but how would it be done in the case of images?
painter = painterResource(R.drawable.sample_image),