Skip to content

Commit

Permalink
Add elevation
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Dec 13, 2024
1 parent 393a308 commit ff9a8df
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ 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
Expand All @@ -28,7 +29,10 @@ fun PreviewNormal() {
ElevatedCard(
Modifier
.padding(8.dp)
.width(180.dp)
.width(180.dp),
elevation = CardDefaults.elevatedCardElevation(
defaultElevation = 12.dp
)
) {
Text(
modifier = Modifier.padding(8.dp),
Expand Down

0 comments on commit ff9a8df

Please sign in to comment.