var progress by remember { mutableStateOf(0f) }Card( modifier = Modifier .fillMaxWidth() .height(IntrinsicSize.Min) .padding(8.dp), onClick = { progress += 0.1f }) { Row { Image(data = uri) Text( modifier = Modifier .padding(8.dp) .align(Alignment.CenterVertically), text = "Album Name", // style = MaterialTheme.typography.h5 ) } // this progress bar will fill the entire height+width of Card if (progress >= 0f) { LinearProgressIndicator( progress = progress, modifier = Modifier.fillMaxHeight(), color = MaterialTheme.colors.primary.copy(alpha = 0.3f) ) }}
❤️ Is this article helpful?
Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.
Do send some 💖 to @d_luaz or share this article.
✨ By Desmond Lua
A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz
👶 Apps I built
Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.