This fixes the bottom content not pushed up when keyboard is visible.
This commit is contained in:
parent
d547e845d2
commit
e6c2668582
2 changed files with 15 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
|||
package app.k9mail.feature.preview.ui
|
||||
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.systemBarsPadding
|
||||
import androidx.compose.foundation.layout.safeDrawingPadding
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.navigation.compose.rememberNavController
|
||||
|
@ -19,7 +19,7 @@ fun FeatureApp(
|
|||
Background(
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.systemBarsPadding()
|
||||
.safeDrawingPadding()
|
||||
.then(modifier),
|
||||
) {
|
||||
FeatureNavHost(navController = navController)
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
package app.k9mail.ui.catalog.ui
|
||||
|
||||
import androidx.compose.foundation.layout.systemBarsPadding
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
import androidx.compose.foundation.layout.safeDrawingPadding
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import app.k9mail.core.ui.compose.common.mvi.observe
|
||||
import app.k9mail.core.ui.compose.designsystem.atom.Background
|
||||
import app.k9mail.ui.catalog.ui.CatalogContract.Event.OnThemeChanged
|
||||
import app.k9mail.ui.catalog.ui.CatalogContract.Event.OnThemeVariantChanged
|
||||
import app.k9mail.ui.catalog.ui.CatalogContract.ViewModel
|
||||
|
@ -20,14 +22,18 @@ fun CatalogScreen(
|
|||
ThemeSwitch(
|
||||
theme = state.value.theme,
|
||||
themeVariant = state.value.themeVariant,
|
||||
) {
|
||||
Background(
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.safeDrawingPadding()
|
||||
.then(modifier),
|
||||
) {
|
||||
CatalogContent(
|
||||
state = state.value,
|
||||
onThemeChanged = { dispatch(OnThemeChanged) },
|
||||
onThemeVariantChanged = { dispatch(OnThemeVariantChanged) },
|
||||
modifier = Modifier
|
||||
.systemBarsPadding()
|
||||
.then(modifier),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue