[#1026] Restore Seed screen keyboard hides UI

Closes #1026
This commit is contained in:
Honza Rychnovský 2023-11-08 10:47:03 +01:00 committed by GitHub
parent 7a59d49920
commit 84e591561d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -2,6 +2,7 @@
package co.electriccoin.zcash.ui.screen.restore.view package co.electriccoin.zcash.ui.screen.restore.view
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.border import androidx.compose.foundation.border
import androidx.compose.foundation.clickable import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Column
@ -11,6 +12,8 @@ import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.imePadding
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyRow import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items import androidx.compose.foundation.lazy.items
@ -156,6 +159,7 @@ fun RestoreWallet(
val currentStage = restoreState.current.collectAsStateWithLifecycle().value val currentStage = restoreState.current.collectAsStateWithLifecycle().value
Scaffold( Scaffold(
modifier = Modifier.navigationBarsPadding(),
topBar = { topBar = {
RestoreTopAppBar( RestoreTopAppBar(
onBack = { onBack = {
@ -177,9 +181,11 @@ fun RestoreWallet(
parseResult = parseResult, parseResult = parseResult,
setTextState = { textState = it }, setTextState = { textState = it },
focusRequester = focusRequester, focusRequester = focusRequester,
modifier = Modifier.padding( modifier = Modifier
bottom = ZcashTheme.dimens.spacingHuge .imePadding()
).fillMaxWidth() .navigationBarsPadding()
.animateContentSize()
.fillMaxWidth()
) )
} }
RestoreStage.Birthday -> { RestoreStage.Birthday -> {