Package com.google.accompanist.insets.ui

Functions

BottomNavigation
Link copied to clipboard
fun BottomNavigation(modifier: Modifier = Modifier, contentPadding: PaddingValues = PaddingValues(0.dp), backgroundColor: Color = MaterialTheme.colors.primarySurface, contentColor: Color = contentColorFor(backgroundColor), elevation: Dp = BottomNavigationDefaults.Elevation, content: @Composable() RowScope.() -> Unit)
A wrapper around BottomNavigation which supports the setting of contentPadding to add internal padding.
BottomNavigationContent
Link copied to clipboard
fun BottomNavigationContent(modifier: Modifier = Modifier, content: @Composable() RowScope.() -> Unit)
BottomNavigationSurface
Link copied to clipboard
fun BottomNavigationSurface(modifier: Modifier = Modifier, backgroundColor: Color = MaterialTheme.colors.primarySurface, contentColor: Color = contentColorFor(backgroundColor), elevation: Dp = BottomNavigationDefaults.Elevation, content: @Composable() () -> Unit)
Scaffold
Link copied to clipboard
fun Scaffold(modifier: Modifier = Modifier, scaffoldState: ScaffoldState = rememberScaffoldState(), topBar: @Composable() () -> Unit = {}, bottomBar: @Composable() () -> Unit = {}, snackbarHost: @Composable() (SnackbarHostState) -> Unit = { SnackbarHost(it) }, floatingActionButton: @Composable() () -> Unit = {}, floatingActionButtonPosition: FabPosition = FabPosition.End, isFloatingActionButtonDocked: Boolean = false, drawerContent: @Composable() ColumnScope.() -> Unit? = null, drawerGesturesEnabled: Boolean = true, drawerShape: Shape = MaterialTheme.shapes.large, drawerElevation: Dp = DrawerDefaults.Elevation, drawerBackgroundColor: Color = MaterialTheme.colors.surface, drawerContentColor: Color = contentColorFor(drawerBackgroundColor), drawerScrimColor: Color = DrawerDefaults.scrimColor, backgroundColor: Color = MaterialTheme.colors.background, contentColor: Color = contentColorFor(backgroundColor), contentPadding: PaddingValues = LocalScaffoldPadding.current, content: @Composable() (PaddingValues) -> Unit)
A copy of androidx.compose.material.
TopAppBar
Link copied to clipboard
fun TopAppBar(title: @Composable() () -> Unit, modifier: Modifier = Modifier, contentPadding: PaddingValues = PaddingValues(0.dp), navigationIcon: @Composable() () -> Unit? = null, actions: @Composable() RowScope.() -> Unit = {}, backgroundColor: Color = MaterialTheme.colors.primarySurface, contentColor: Color = contentColorFor(backgroundColor), elevation: Dp = AppBarDefaults.TopAppBarElevation)
A wrapper around TopAppBar which supports the setting of contentPadding to add internal padding.
TopAppBarContent
Link copied to clipboard
fun TopAppBarContent(title: @Composable() () -> Unit, modifier: Modifier = Modifier, navigationIcon: @Composable() () -> Unit? = null, actions: @Composable() RowScope.() -> Unit = {})
TopAppBarSurface
Link copied to clipboard
fun TopAppBarSurface(modifier: Modifier = Modifier, backgroundColor: Color = MaterialTheme.colors.primarySurface, contentColor: Color = contentColorFor(backgroundColor), elevation: Dp = AppBarDefaults.TopAppBarElevation, content: @Composable() () -> Unit)

Properties

LocalScaffoldPadding
Link copied to clipboard
Provides the current Scaffold content padding values.