-
-
Save skydoves/aaaf2895138ac68973ba54ddc6e87519 to your computer and use it in GitHub Desktop.
adaptive_layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scaffold( | |
modifier = Modifier, | |
containerColor = Color.Transparent, | |
bottomBar = { | |
if (windowSizeClass.widthSizeClass == WindowWidthSizeClass.Compact) { | |
NiABottomBar( | |
onNavigateToTopLevelDestination = niaTopLevelNavigation::navigateTo, | |
currentDestination = currentDestination | |
) | |
} | |
} | |
) { padding -> { | |
.. | |
if (windowSizeClass.widthSizeClass != WindowWidthSizeClass.Compact) { | |
NiANavRail( | |
onNavigateToTopLevelDestination = niaTopLevelNavigation::navigateTo, | |
currentDestination = currentDestination, | |
modifier = Modifier.safeDrawingPadding() | |
) | |
} | |
.. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment