-
public final class BottomNavigationKt
-
-
Method Summary
Modifier and Type Method Description final static UnitBottomNavigation(Modifier modifier, PaddingValues contentPadding, Color backgroundColor, Color contentColor, Dp elevation, Function1<RowScope, Unit> content)A wrapper around BottomNavigation which supports the setting of contentPadding to add internal padding. final static UnitBottomNavigationSurface(Modifier modifier, Color backgroundColor, Color contentColor, Dp elevation, Function0<Unit> content)final static UnitBottomNavigationContent(Modifier modifier, Function1<RowScope, Unit> content)-
-
Method Detail
-
BottomNavigation
final static Unit BottomNavigation(Modifier modifier, PaddingValues contentPadding, Color backgroundColor, Color contentColor, Dp elevation, Function1<RowScope, Unit> content)
A wrapper around BottomNavigation which supports the setting of contentPadding to add internal padding. This is especially useful in conjunction with insets.
For an edge-to-edge layout, typically you would use the com.google.accompanist.insets.WindowInsets.navigationBars insets like so below:
-
BottomNavigationSurface
final static Unit BottomNavigationSurface(Modifier modifier, Color backgroundColor, Color contentColor, Dp elevation, Function0<Unit> content)
-
BottomNavigationContent
final static Unit BottomNavigationContent(Modifier modifier, Function1<RowScope, Unit> content)
-
-
-
-