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 QR Code "scan to share" button that redirects to OID4VP flow #34

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Joey-Silberman
Copy link

@Joey-Silberman Joey-Silberman commented Oct 1, 2024

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

) {
Button(
onClick = {
navController.navigate(Screen.OID4VPScreen.route)

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.

Copy link
Member

@Juliano1612 Juliano1612 left a 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

modifier = Modifier.fillMaxSize(),
contentAlignment = Alignment.BottomCenter
) {
Button(
Copy link
Member

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

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants