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

Fix flip animation #5

Merged
merged 4 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
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
14 changes: 14 additions & 0 deletions app/src/main/java/com/aritra/composecards/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ package com.aritra.composecards
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.tooling.preview.Preview
import com.aritra.compose_cards.CardDetails
import com.aritra.composecards.ui.theme.ComposeCardsTheme

Expand All @@ -32,3 +34,15 @@ class MainActivity : ComponentActivity() {
}
}

@Preview(showSystemUi = true)
@Composable
private fun MainActivityPreview() {
CardDetails(
creditCardNumber = "1232222222222222",
creditCardHolderName = "Aritra Das",
creditCardExpiryDate = "1220",
creditCardCVV = "205",
onSave = {}
)
}

1 change: 1 addition & 0 deletions compose_cards/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ dependencies {
implementation(libs.androidx.activity.compose)
implementation(libs.androidx.ui)
implementation(libs.androidx.material)
implementation (libs.material3)
implementation(libs.androidx.ui.graphics)
implementation(libs.androidx.foundation)
implementation(libs.androidx.ui.tooling.preview)
Expand Down
Loading