Skip to content

Commit

Permalink
Add elevation for PreviewNormal preview test
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Dec 13, 2024
1 parent 8339a5f commit 393a308
Showing 1 changed file with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
)
}
}
}
}
Expand Down

0 comments on commit 393a308

Please sign in to comment.