Skip to content

Commit

Permalink
Merge pull request #608 from takahirom/takahirom/add-elevation-for-Pr…
Browse files Browse the repository at this point in the history
…eviewNormal-preview-test/2024-12-13

Add elevation for PreviewNormal preview test
  • Loading branch information
takahirom authored Dec 13, 2024
2 parents 8339a5f + ff9a8df commit 46c9b48
Showing 1 changed file with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ 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.CardDefaults
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 +24,21 @@ 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),
elevation = CardDefaults.elevatedCardElevation(
defaultElevation = 12.dp
)
) {
Text(
modifier = Modifier.padding(8.dp),
text = "Generate Preview Test Sample"
)
}
}
}
}
Expand Down

0 comments on commit 46c9b48

Please sign in to comment.