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

Feat: Added 2 drawer screens #200

Merged
merged 1 commit into from
Apr 12, 2022
Merged

Feat: Added 2 drawer screens #200

merged 1 commit into from
Apr 12, 2022

Conversation

fivetran-tangyetong
Copy link
Collaborator

Added drawer screens for RecoveryPhraseScreen.kt and SendCoinsBackScreen.kt.
Standardized the animations for every drawer screen.

In the SendCoinsBackScreen.kt I have used the general snackbar but it can be changed later on.


fun copyToClipboard(context: Context, scope: CoroutineScope, snackbarHostState: SnackbarHostState) {
val clipboard: ClipboardManager = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
val clip: ClipData = ClipData.newPlainText("Copied address", context.getString(R.string.send_coins_back_address))
Copy link
Owner

Choose a reason for hiding this comment

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

On my device the end of the address is not shown, but there is also no real indication that a part of it is missing. It's not a big deal because you click/copy anyway the right string, but I'm wondering if you'd mind making the font a bit smaller so that it shows the full address on more devices.

Copy link
Owner

Choose a reason for hiding this comment

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

Maybe not a long-term solution, but for now at least is a bit better than just cutting the address on most devices.

@thunderbiscuit
Copy link
Owner

thunderbiscuit commented Apr 11, 2022

Awesome stuff 🔥 🔥. Also congrats on opening PR #200!!!

@fivetran-tangyetong
Copy link
Collaborator Author

Updated the commit to remove the maxLine = 1 that was making the line extend out of the screen.

@thunderbiscuit thunderbiscuit merged commit 1630152 into thunderbiscuit:compose Apr 12, 2022
@fivetran-tangyetong fivetran-tangyetong deleted the Feat_Adding_Drawer_Screen branch April 17, 2022 15:29
@thunderbiscuit thunderbiscuit added this to the v0.9.0 milestone Jun 16, 2022
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.

2 participants