Add a weight to errors in PlayerView

This commit is contained in:
vfsfitvnm 2022-06-05 11:59:43 +02:00
parent 7f164d7898
commit c6c0d06b58

View file

@ -241,15 +241,12 @@ fun PlayerView(
Box(
contentAlignment = Alignment.Center,
modifier = Modifier
.weight(1f)
.align(Alignment.CenterHorizontally)
.padding(bottom = 32.dp)
.padding(horizontal = 32.dp)
.size(thumbnailSizeDp)
) {
// BasicText(
// text = playerState.error?.message ?: "",
// style = typography.xs.medium
// )
Error(
error = Outcome.Error.Unhandled(player.error!!),
onRetry = {