diff --git a/sample-generate-preview-tests/src/main/java/com/github/takahirom/preview/tests/Previews.kt b/sample-generate-preview-tests/src/main/java/com/github/takahirom/preview/tests/Previews.kt index ac29760a..1b8c89fb 100644 --- a/sample-generate-preview-tests/src/main/java/com/github/takahirom/preview/tests/Previews.kt +++ b/sample-generate-preview-tests/src/main/java/com/github/takahirom/preview/tests/Previews.kt @@ -6,7 +6,9 @@ import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width import androidx.compose.material3.Card +import androidx.compose.material3.ElevatedCard import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Surface import androidx.compose.material3.Text import androidx.compose.material3.darkColorScheme import androidx.compose.material3.lightColorScheme @@ -21,14 +23,18 @@ import androidx.compose.ui.unit.dp @Composable fun PreviewNormal() { MaterialTheme { - Card( - Modifier - .width(180.dp) + Surface( ) { - Text( - modifier = Modifier.padding(8.dp), - text = "Generate Preview Test Sample" - ) + ElevatedCard( + Modifier + .padding(8.dp) + .width(180.dp) + ) { + Text( + modifier = Modifier.padding(8.dp), + text = "Generate Preview Test Sample" + ) + } } } }