Package-level declarations

Types

Link copied to clipboard

Which of the app's bottom accessories the shell shows.

Link copied to clipboard

Slows every shell transition down, to watch the back animation frame by frame.

Link copied to clipboard
data class AppToolkitDefaults(val shell: ShellSettings = ShellSettings(), val navigation: NavigationDefaults = NavigationDefaults())

One app's defaults for the Toolkit: how its shell behaves and how its destinations look when nobody chose otherwise.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

How a back swipe from the right edge moves the page.

Link copied to clipboard

Which Material navigation bar the bottom bar layout uses.

Link copied to clipboard
Link copied to clipboard

Whether the rail or permanent drawer and the app bar share one container colour on wide windows, framing the content as a card.

Link copied to clipboard

The shell settings an app may choose as its own defaults. The settings that only exist to test the shell, such as a forced layout, a slowed animation or a start override, stay at the Toolkit's defaults and are left to the developer options.

Link copied to clipboard
data class ShellSettings(val layoutMode: ShellLayoutMode = ShellLayoutMode.Auto, val topBarOverride: TopBarOverride = TopBarOverride.AsDeclared, val tabTransition: TabTransitionStyle = TabTransitionStyle.Directional, val accessoryMode: AccessoryMode = AccessoryMode.AsDeclared, val hideBottomBarOnScroll: Boolean = true, val limitContentWidth: Boolean = true, val animationSpeed: AnimationSpeed = AnimationSpeed.Normal, val backEdgeStyle: BackEdgeStyle = BackEdgeStyle.System, val startOverride: Int = -1, val navigationBarStyle: NavigationBarStyle = NavigationBarStyle.Standard, val navigationTint: NavigationTint = NavigationTint.Always, val hideTopBarOnScroll: Boolean = false, val entranceStyle: EntranceStyle = EntranceStyle.Slide, val motionTempo: MotionTempo = MotionTempo.Calm, val entranceReplay: EntranceReplay = EntranceReplay.OnOpen)

The shell's persisted overrides: how it lays out, moves and draws its chrome.

Link copied to clipboard

Replaces every destination's own app bar style, to try one style across the whole app.

Functions

Link copied to clipboard

Builds AppToolkitDefaults. Anything left out keeps the Toolkit's default.