patterns library

Classes

UiAppBar
Simple top bar with title, leading and trailing slots.
UiAppShell
Generic app shell: optional top/bottom bars around a body.
UiBackSwipeLayeredMetrics
Parallax geometry constants used by the interactive back-swipe region in UiNavigationHost. Declared at the library level so tests can exercise the same numbers the implementation renders.
UiChatComposer
Chat input row with attachment slot and send action.
UiCollectionPage<T>
Semantic collection page pattern.
UiContainerBackdropSpec
Configures the performance tier and appearance of a container backdrop.
UiContainerFlightScope
Live geometry exposed to content inside an Open UI container transform.
UiContainerTransformGeometry
Geometry shared by iOS-style source tiles and their route transition.
UiContainerTransformRoute<T>
A reversible route whose surface expands from sourceRect.
UiContainerTransformTransition
Geometry and reveal primitive used by UiContainerTransformRoute.
UiContentOcclusionSpec
Timing and material used to conceal a content identity swap during a container transform.
UiContentPage
A titled, vertically scrolling page composed from Open UI Kit navigation, safe-area, spacing, and refresh primitives.
UiDualPane<T>
Adaptive master-detail layout.
UiDualPaneController<T>
Selection controller for UiDualPane.
UiDualPaneScope<T>
Inherited access to a UiDualPaneController.
UiFormPage
Semantic form page pattern.
UiMessageBubble
Chat bubble surface.
UiNavigationBackButton
UiNavigationBackConfig
UiNavigationBackHistoryItem
UiNavigationBackPopTarget
UiNavigationController
A typed, router-agnostic navigation stack controller.
UiNavigationControllerScope
Runtime navigation context exposed by UiNavigationHost.
UiNavigationHost
Renders the current stack of a UiNavigationController.
UiNavigationScope
Exposes page-level navigation metadata to descendants.
UiNavigationSpec
Declarative metadata for a page's navigation chrome.
UiNavigationStack
Open UI Kit transition host for index-addressed page stacks.
UiNavigationTransition
Transition wrapper used by UiNavigationStack and by custom hosts.
UiOpenContainer
Connects a compact source surface to a full-page destination.
UiPageBodyInsets
UiPageLayout
Semantic page pattern built on UiPageScaffold.
UiPageScaffold
Preferred page shell: coordinates background, top/bottom bars, safe viewport policy, and system bar syncing in a single widget.
UiProfileSummary
Centered profile summary pattern: avatar, primary name, optional subtitle, and optional action row.
UiRouteEntry
A single entry on a UiNavigationController stack.
UiRouteSpec<TArgs, TResult>
A typed route definition.
UiSafeViewport
Applies a predictable safe-area strategy for Open UI Kit pages.
UiScrollEdgeFade
Paints inexpensive surface-color fades over the vertical edges of child.
UiSettingsGroup
UiSettingsItem
UiSettingsList
Grouped settings/action list pattern.
UiSliverCollection<T>
Section-aware sliver collection with adaptive one/two-column rows.
UiSliverNavigationBar
Sliver-based navigation bar with large-title collapse behavior.
UiSliverStickyRegion
A fixed-height page utility that pins as its content scrolls underneath.
UiSurfaceRegion
Visually-scoped surface region.
UiSystemBars
Applies a SystemUiOverlayStyle to the subtree via AnnotatedRegion.
UiSystemBarsStyle
Helpers for building SystemUiOverlayStyle values from a background color. Exposed so consumers can cache/reuse the result when they need the raw style object (e.g. to pass into an external AnnotatedRegion).

Enums

UiBackSwipeTransition
Interactive back-swipe transition style.
UiCollectionLayout
UiContainerBackdropStyle
How the route behind an iOS-style container transform is separated from the expanding surface.
UiContainerFlightDirection
UiContainerPathMotion
Path used by the animated container bounds.
UiContainerSourceFlightLayout
How compact content participates in an iOS-style container flight.
UiContainerTransformStyle
UiDualPaneTabletMode
How a tablet-width master/detail surface should use constrained width.
UiMessageAuthor
Direction of a chat message.
UiMessageStatus
Ephemeral state flag for streaming/pending messages.
UiNavigationSurface
Visual treatment for the navigation surface.
UiNavigationTransitionStyle
Transition presets for navigation animations.
UiPageBodyInsetsAspect
Safe insets that page body scrollables should include in their content padding when UiPageScaffold.scrollFadeUsesSafeArea is enabled.
UiSafeViewportMode
Safe-area policy for a page subtree.
UiStickyRegionSurface
Surface treatment for UiSliverStickyRegion.

Extensions

UiNavigationHistoryX on UiNavigationController
Back-compat shim. toBackHistoryItems() forwards to UiNavigationController.historyItems — new code should call the controller method directly.

Typedefs

UiCollectionItemBuilder<T> = Widget Function(BuildContext context, T item, int index)
UiCollectionSectionBuilder<T> = Widget? Function(BuildContext context, T item, int index)
Builds a header when item starts a new collection section. Return null when the item continues the current section.
UiContainerFlightBuilder = Widget Function(BuildContext context)
UiContainerPageBuilder = Widget Function(BuildContext context)
UiDualPaneBuilder<T> = Widget Function(BuildContext context, T? selected, void select(T? value))
UiOpenContainerBuilder = Widget Function(BuildContext context, VoidCallback open)