mirror of
https://github.com/owenlejeune/TVTime.git
synced 2025-11-08 12:42:44 -05:00
fix up some padding for pill segmented control
This commit is contained in:
@@ -52,7 +52,7 @@ fun <T> PillSegmentedControl(
|
||||
val textViewSize = remember { mutableStateOf(IntSize.Zero) }
|
||||
val maxTextViewSize = remember { mutableStateOf(IntSize.Zero) }
|
||||
|
||||
val offsetAnimation by animateDpAsState(targetValue = (selectedIndex.value * textViewSize.value.width).toDp())
|
||||
val offsetAnimation by animateDpAsState(targetValue = ((selectedIndex.value * textViewSize.value.width) + (2 * selectedIndex.value)).toDp(), label = "")
|
||||
|
||||
BoxWithConstraints(
|
||||
modifier = modifier.then(
|
||||
|
||||
Reference in New Issue
Block a user