Skip to content

Commit

Permalink
Use Box instead of Surface
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Aug 19, 2024
1 parent c1a6c7a commit 751db02
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package com.infomaniak.swisstransfer.ui.components

import android.content.res.Configuration
import androidx.annotation.StringRes
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
Expand Down Expand Up @@ -119,9 +120,10 @@ private fun BottomSheetDefaultsPreview() {
titleRes = R.string.appName,
descriptionRes = R.string.sentEmptyTitle,
content = {
Surface(
modifier = Modifier.size(200.dp),
color = Color.Gray,
Box(
modifier = Modifier
.size(200.dp)
.background(Color.Gray),
) {}
},
topButton = {
Expand Down

0 comments on commit 751db02

Please sign in to comment.