Package-level declarations
Functions
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. This is especially useful in conjunction with insets.
Link copied to clipboard
fun BottomNavigationContent(modifier: Modifier = Modifier, content: @Composable RowScope.() -> Unit)
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)
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.Scaffold which lays out content behind both the top bar content, and the bottom bar content. See androidx.compose.material.Scaffold for more information about the features provided.
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. This is especially useful in conjunction with insets.
Link copied to clipboard
fun TopAppBarContent(title: @Composable () -> Unit, modifier: Modifier = Modifier, navigationIcon: @Composable () -> Unit? = null, actions: @Composable RowScope.() -> Unit = {})
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
Link copied to clipboard
Provides the current Scaffold content padding values.