fix width issue
This commit is contained in:
parent
186fbf0c12
commit
e44d76f1d8
|
@ -453,7 +453,7 @@ private fun BottomUI(
|
||||||
) {
|
) {
|
||||||
Text("00:06:45")
|
Text("00:06:45")
|
||||||
Seeker(
|
Seeker(
|
||||||
modifier.weight(1F),
|
Modifier.weight(1F),
|
||||||
value = seekPosition,
|
value = seekPosition,
|
||||||
onValueChange = seekPositionChanged,
|
onValueChange = seekPositionChanged,
|
||||||
onValueChangeFinished = seekingFinished
|
onValueChangeFinished = seekingFinished
|
||||||
|
@ -461,7 +461,7 @@ private fun BottomUI(
|
||||||
|
|
||||||
//Slider(value = 0.4F, onValueChange = {}, modifier = Modifier.weight(1F))
|
//Slider(value = 0.4F, onValueChange = {}, modifier = Modifier.weight(1F))
|
||||||
|
|
||||||
//Text("00:09:40")
|
Text("00:09:40")
|
||||||
|
|
||||||
IconButton(onClick = if (isFullscreen) switchToEmbeddedView else switchToFullscreen) {
|
IconButton(onClick = if (isFullscreen) switchToEmbeddedView else switchToFullscreen) {
|
||||||
Icon(
|
Icon(
|
||||||
|
@ -470,7 +470,6 @@ private fun BottomUI(
|
||||||
contentDescription = stringResource(R.string.widget_description_toggle_fullscreen)
|
contentDescription = stringResource(R.string.widget_description_toggle_fullscreen)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,8 +36,11 @@ import androidx.compose.foundation.interaction.Interaction
|
||||||
import androidx.compose.foundation.interaction.MutableInteractionSource
|
import androidx.compose.foundation.interaction.MutableInteractionSource
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.Box
|
||||||
import androidx.compose.foundation.layout.BoxWithConstraints
|
import androidx.compose.foundation.layout.BoxWithConstraints
|
||||||
|
import androidx.compose.foundation.layout.Row
|
||||||
import androidx.compose.foundation.layout.Spacer
|
import androidx.compose.foundation.layout.Spacer
|
||||||
import androidx.compose.foundation.layout.fillMaxSize
|
import androidx.compose.foundation.layout.fillMaxSize
|
||||||
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
|
import androidx.compose.foundation.layout.height
|
||||||
import androidx.compose.foundation.layout.heightIn
|
import androidx.compose.foundation.layout.heightIn
|
||||||
import androidx.compose.foundation.layout.offset
|
import androidx.compose.foundation.layout.offset
|
||||||
import androidx.compose.foundation.layout.requiredSizeIn
|
import androidx.compose.foundation.layout.requiredSizeIn
|
||||||
|
@ -46,6 +49,8 @@ import androidx.compose.foundation.layout.widthIn
|
||||||
import androidx.compose.foundation.progressSemantics
|
import androidx.compose.foundation.progressSemantics
|
||||||
import androidx.compose.foundation.shape.CircleShape
|
import androidx.compose.foundation.shape.CircleShape
|
||||||
import androidx.compose.material.ripple.rememberRipple
|
import androidx.compose.material.ripple.rememberRipple
|
||||||
|
import androidx.compose.material3.Surface
|
||||||
|
import androidx.compose.material3.Text
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.LaunchedEffect
|
import androidx.compose.runtime.LaunchedEffect
|
||||||
import androidx.compose.runtime.getValue
|
import androidx.compose.runtime.getValue
|
||||||
|
@ -70,6 +75,7 @@ import androidx.compose.ui.graphics.drawscope.rotateRad
|
||||||
import androidx.compose.ui.graphics.drawscope.translate
|
import androidx.compose.ui.graphics.drawscope.translate
|
||||||
import androidx.compose.ui.graphics.graphicsLayer
|
import androidx.compose.ui.graphics.graphicsLayer
|
||||||
import androidx.compose.ui.input.pointer.pointerInput
|
import androidx.compose.ui.input.pointer.pointerInput
|
||||||
|
import androidx.compose.ui.layout.VerticalAlignmentLine
|
||||||
import androidx.compose.ui.platform.LocalDensity
|
import androidx.compose.ui.platform.LocalDensity
|
||||||
import androidx.compose.ui.platform.LocalLayoutDirection
|
import androidx.compose.ui.platform.LocalLayoutDirection
|
||||||
import androidx.compose.ui.semantics.disabled
|
import androidx.compose.ui.semantics.disabled
|
||||||
|
@ -321,7 +327,7 @@ private fun Track(
|
||||||
|
|
||||||
Canvas(
|
Canvas(
|
||||||
modifier = modifier.graphicsLayer {
|
modifier = modifier.graphicsLayer {
|
||||||
alpha = 0.99f
|
alpha = 1.0f
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
val isRtl = layoutDirection == LayoutDirection.Rtl
|
val isRtl = layoutDirection == LayoutDirection.Rtl
|
||||||
|
|
Loading…
Reference in New Issue