-
Notifications
You must be signed in to change notification settings - Fork 0
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 QR Code "scan to share" button that redirects to OID4VP flow #34
base: main
Are you sure you want to change the base?
Conversation
example/src/main/java/com/spruceid/mobilesdkexample/wallet/WalletHomeView.kt
Outdated
Show resolved
Hide resolved
) { | ||
Button( | ||
onClick = { | ||
navController.navigate(Screen.OID4VPScreen.route) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a follow-up PR, we need to implement the QR code scanner on this page route.
…are button is pressed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The button and the redirection are working well, but there are some design issues
example/src/main/java/com/spruceid/mobilesdkexample/wallet/WalletHomeView.kt
Outdated
Show resolved
Hide resolved
example/src/main/java/com/spruceid/mobilesdkexample/wallet/WalletHomeView.kt
Outdated
Show resolved
Hide resolved
example/src/main/java/com/spruceid/mobilesdkexample/wallet/WalletHomeView.kt
Outdated
Show resolved
Hide resolved
modifier = Modifier.fillMaxSize(), | ||
contentAlignment = Alignment.BottomCenter | ||
) { | ||
Button( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The button is not fixed on the screen. If I add five credentials it disappears
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the button should be fixed on the screen now, let me know if it works on your end.
This PR adds a button to the wallet home view (if there are any
rawCredentials
on the screen) which redirects to the OID4vp flow. The button will not appear if there are no credentials added yet.I also bumped the CompileSDK version to match the newest version of Android Studio.
Note: This is the Android version of this PR: spruceid/mobile-sdk-ios-app#21