Skip to content

Commit

Permalink
Make the sample look better on large screens
Browse files Browse the repository at this point in the history
  • Loading branch information
saket committed Nov 27, 2024
1 parent 6c48fbf commit 4154075
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.widthIn
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.PlayArrow
Expand Down Expand Up @@ -130,6 +131,7 @@ class SampleActivity : AppCompatActivity() {
CompositionLocalProvider(LocalContentColor provides Color.White) {
Box(
modifier
.widthIn(max = 500.dp)
.fillMaxWidth()
.height(184.dp)
.clip(RoundedCornerShape(28.dp))
Expand Down

0 comments on commit 4154075

Please sign in to comment.