layout library
Layout, responsive helpers, spacing, and screen scaffolds.
Classes
- Responsive
- Information about the current device's screen size and form factor.
- ResponsiveLayout
- Picks mobile, tablet, or desktop based on viewport width.
- ResponsiveProvider
- A provider widget that automatically calculates and provides Responsive data.
- ResponsiveScope
- An InheritedWidget that provides Responsive data to its descendants.
- UIAnchoredOverlay
- Higher-level anchored overlay with optional tap-outside dismiss.
- UIAnchoredOverlayController
- Controller for toggling a UIAnchoredOverlay.
- UICenteredTextDivider
- Horizontal divider with centered label and lines on both sides.
- UIDashedDivider
- Dashed line divider along the horizontal or vertical axis.
- UIDivider
- Horizontal or vertical divider with kit-consistent spacing defaults.
- UIDynamicOverflow
- Lays out children in a horizontal row and moves items that do not fit into an overflow control built by overflowBuilder.
- UIDynamicOverflowMenuButton
- Default overflow menu button for UIDynamicOverflow.
- UIExpandableFloatingPanel
- Expandable floating panel that grows from a corner action button.
- UIFixedSectionListView
- Builds a scrollable list from a small fixed set of sections.
- UIKeyboardDismissArea
- Wraps child and dismisses the keyboard when the user taps outside focused text fields.
- UIKeyboardToolbar
- Keyboard accessory bar with previous, next, and done actions.
- UIKeyboardToolbarHost
- Host that pins UIKeyboardToolbar above the software keyboard.
- UIPageScaffold
- Scaffold page with safe area, scrollable body, and optional max content width.
- UIPortal
- Anchors child and renders overlay in the root Overlay when visible.
- UIPortalAnchor
- Alignment pair used to position a UIPortal overlay relative to its anchor.
- UIScrollableScreen
- Screen wrapper with configurable scroll behavior and safe-area padding.
- UISeparatedColumn
- Column of children with separatorBuilder between items.
- UISeparatedFlex
- Shared implementation for UISeparatedColumn and UISeparatedRow.
- UISeparatedRow
- Row of children with separatorBuilder between items.
- UISpacing
- Convenience SizedBox for horizontal and/or vertical spacing.
Enums
- UIScrollableType
- Scroll layout mode for UIScrollableScreen.
Constants
- desktopWidth → const int
- Desktop breakpoint (width in logical pixels).
- mobileLowestWidth → const int
- Minimum mobile width breakpoint.
- mobileWidth → const int
- Mobile breakpoint (width in logical pixels).
- tabletWidth → const int
- Tablet breakpoint (width in logical pixels).