MainAppScaffoldDefaults

Standard slot contents that callers can reuse inside their own scaffold-slot wrappers.

Functions

Link copied to clipboard
fun BottomNavigation(items: List<StyledNavigationItem<NavScreen>>, selectedKey: NavScreen, onItemClick: (NavScreen) -> Unit, containerColor: Color = StyledTheme.colorScheme.surface, contentColor: Color = StyledTheme.contentColorFor(containerColor), indicatorTint: Color = StyledTheme.colorScheme.primary)
Link copied to clipboard
fun Content(paddingValues: PaddingValues, adaptiveInfo: State<StyledAdaptiveInfo>, banner: @Composable () -> Unit = {}, transitionSpec: AnimatedContentTransitionScope<Scene<NavKey>>.() -> ContentTransform = NavScreenDefaults.crossfadeTransitionSpec(), popTransitionSpec: AnimatedContentTransitionScope<Scene<NavKey>>.() -> ContentTransform = NavScreenDefaults.crossfadeTransitionSpec(), predictivePopTransitionSpec: AnimatedContentTransitionScope<Scene<NavKey>>.(Int) -> ContentTransform = NavScreenDefaults.crossfadePredictivePopTransitionSpec())
Link copied to clipboard
fun SideNavigation(items: List<StyledNavigationItem<NavScreen>>, selectedKey: NavScreen, mode: StyledNavigationMode.Side, expanded: MutableState<Boolean>, onItemClick: (NavScreen) -> Unit, title: @Composable () -> Unit = { StyledText(AppSetup.get().appData.name) }, containerColor: Color = StyledTheme.colorScheme.surface, contentColor: Color = StyledTheme.contentColorFor(containerColor), indicatorTint: Color = StyledTheme.colorScheme.primary)
Link copied to clipboard
fun TopAppBar(toolbarConfig: ToolbarConfig?, topAppBarColor: @Composable () -> Color? = null, topAppBarContentColor: @Composable () -> Color? = null)