fixup! impr: add animation

This commit is contained in:
Sweetbread 2025-04-24 16:51:54 +03:00
parent d0347426c3
commit ec4ee64d68

View File

@ -282,11 +282,13 @@ fun ScheduleItem(modifier: Modifier = Modifier, unit: ScheduleUnit, expanded: Bo
horizontalArrangement = Arrangement.SpaceBetween,
verticalAlignment = Alignment.CenterVertically) {
Text(begin.toString(), fontWeight = FontWeight.Bold)
AnimatedVisibility ((0f < rel) and (rel < 1f)) {
AnimatedVisibility (
(0f < rel) and (rel < 1f),
modifier = Modifier
.weight(1f)
.padding(horizontal = 2.dp)
) {
DividerWithMarker(
Modifier
.weight(1f)
.padding(horizontal = 2.dp),
positionPercentage = rel,
color = MaterialTheme.colorScheme.outline,
thickness = 3.dp,