Ink
09/19/2023, 8:28 AM@Composable
fun RowScope.Bar(
maxHeight: Float,
coloredHeight: Float,
) {
Column(
modifier = Modifier
.padding(horizontal = 5.dp)
) {
Spacer(
modifier = Modifier
.height(maxHeight.dp - coloredHeight.dp)
.width(30.dp)
.background(
color = ChartBackgroundGreyColor,
shape = RoundedCornerShape(
topStartPercent = 45,
topEndPercent = 45
)
)
)
Spacer(
modifier = Modifier
.height(coloredHeight.dp)
.width(30.dp)
.background(
color = ChartBasicGreenColor,
shape = RoundedCornerShape(45)
)
)
}
}
Alexander Zhirkevich
09/19/2023, 8:31 AMInk
09/19/2023, 8:33 AMAlexander Zhirkevich
09/19/2023, 8:34 AMInk
09/19/2023, 8:34 AMAlexander Zhirkevich
09/19/2023, 8:37 AMVlad
09/19/2023, 8:50 AMBox(
modifier = Modifier
.clip(RoundedCornerShape(20.dp))
.size(width = 60.dp, height = 300.dp)
.background(
color = Color.Gray
)
) {
Spacer(
modifier = Modifier
.fillMaxSize()
.padding(top = 40.dp)
.clip(RoundedCornerShape(20.dp))
.background(
color = Color.Green
)
)
}
Ink
09/19/2023, 3:21 PM