Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add elevation for PreviewNormal preview test #608

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading