Add parameter and use it, bottomSystemUiHeight.

Change-Id: I93dbc31d9cdf6d23fb8cf5b080846f6e23e8a855
pull/1296/head^2
Jaehwa Noh 1 year ago
parent 09be649654
commit b01c48e637

@ -80,6 +80,7 @@ fun NiaApp(
appState: NiaAppState,
modifier: Modifier = Modifier,
windowAdaptiveInfo: WindowAdaptiveInfo = currentWindowAdaptiveInfo(),
bottomSystemUiHeight: WindowInsets = WindowInsets.safeDrawing.only(WindowInsetsSides.Bottom),
) {
val shouldShowGradientBackground =
appState.currentTopLevelDestination == TopLevelDestination.FOR_YOU
@ -87,9 +88,7 @@ fun NiaApp(
NiaBackground(
modifier = modifier
.windowInsetsPadding(
WindowInsets.safeDrawing.only(WindowInsetsSides.Bottom),
),
.windowInsetsPadding(bottomSystemUiHeight),
) {
NiaGradientBackground(
gradientColors = if (shouldShowGradientBackground) {

Loading…
Cancel
Save