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 address share screen #111

Merged
merged 6 commits into from
May 17, 2024
Merged

Add address share screen #111

merged 6 commits into from
May 17, 2024

Conversation

aminsato
Copy link
Contributor

No description provided.


@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun QrAddressScreen(navController: NavHostController) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, let's keep everything internal where possible; it'll help us to modularize the application later

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


Box(
Modifier
.clip(shape = RoundedCornerShape(qrBoxSize.div(10)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably just fixed 10.dp size of corners

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rounded corner size is calculated based on the radius of the QR border, ensuring that it remains proportional to the size of the border. This approach prevents any extra cut of the border on devices with different screen sizes, resulting in a consistent and visually pleasing UI experience across various devices.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And why not to fix size of the QR border at 10.dp too?

@aminsato aminsato force-pushed the feature/chain-address-qr-code branch from 7c6e762 to 430feae Compare May 17, 2024 11:58
@aminsato aminsato requested review from yvebe and johnnyluo May 17, 2024 12:18
@yvebe yvebe merged commit 6e4e0ea into main May 17, 2024
1 check passed
@yvebe yvebe deleted the feature/chain-address-qr-code branch May 17, 2024 12:22
@johnnyluo johnnyluo mentioned this pull request May 20, 2024
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.

3 participants