Skip to content

Commit 247ae27

Browse files
committed
refactor(card): update shape of cards
1 parent 2fa15c5 commit 247ae27

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/src/main/java/de/pawcode/cardstore/ui/components/AddCardComponent.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ fun AddCardComponent(hasCards: Boolean, onClick: () -> Unit) {
3030
modifier = Modifier.fillMaxWidth().aspectRatio(1.586f).clickable { onClick() },
3131
colors =
3232
CardDefaults.outlinedCardColors(containerColor = MaterialTheme.colorScheme.surfaceContainer),
33+
shape = MaterialTheme.shapes.large,
3334
) {
3435
Column(
3536
horizontalAlignment = Alignment.CenterHorizontally,

app/src/main/java/de/pawcode/cardstore/ui/components/CardComponent.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ fun CardComponent(card: CardEntity, onClick: () -> Unit, onLongPress: () -> Unit
4444
),
4545
elevation = CardDefaults.cardElevation(defaultElevation = 8.dp),
4646
colors = CardDefaults.cardColors(containerColor = color),
47+
shape = MaterialTheme.shapes.large,
4748
) {
4849
Column(
4950
horizontalAlignment = Alignment.CenterHorizontally,

0 commit comments

Comments
 (0)