-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
|
||
@OptIn(ExperimentalMaterial3Api::class) | ||
@Composable | ||
fun QrAddressScreen(navController: NavHostController) { |
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.
Please, let's keep everything internal where possible; it'll help us to modularize the application later
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.
Done
app/src/main/java/com/vultisig/wallet/ui/navigation/Navigation.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/vultisig/wallet/presenter/qr_address/QrAddressScreen.kt
Outdated
Show resolved
Hide resolved
|
||
Box( | ||
Modifier | ||
.clip(shape = RoundedCornerShape(qrBoxSize.div(10))) |
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.
It's probably just fixed 10.dp size of corners
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 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.
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.
And why not to fix size of the QR border at 10.dp too?
Co-authored-by: YGolybev <[email protected]>
…ddressScreen.kt Co-authored-by: YGolybev <[email protected]>
7c6e762
to
430feae
Compare
No description provided.