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

Loading…
Cancel
Save