liquid_adaptive_nav library

Classes

AdaptiveLayoutMetrics
Resolved posture + window geometry helpers used across Phone, Foldable (Book/TableTop), Tablet/iPad, and Desktop macOS windows.
AdaptivePostureBuilder
An adaptive Flutter widget that continuously tracks both hardware folding posture (flat, tabletop, book, hinge dimensions) and responsive window size class (compact, medium, expanded).
DisplayMetrics
Physical display dimensions, density, orientation, and device type.
DisplayPostureDetector
DuoSideActionItem
Action descriptor for a frosted-glass button inside DuoSideActionStrip.
DuoSideActionStrip
Compact frosted/liquid-glass vertical action capsule rendered inside an asymmetric iOS / iPhone Duo reserved side strip for pushed screens (e.g., Back, Close, Delete, Stop, Edit).
DuoSideStripLayout
Shared geometry for docked iPhone Duo frosted-glass side-strip capsules.
DuoSideStripSpec
Geometry for an asymmetric iOS vertical reserved side strip (e.g. iPhone Duo camera/dock strip).
FloatingPillNavBar
Floating frosted/liquid-glass pill navigation bar with adaptive platform support:
LiquidAdaptiveNavShell
Top-level adaptive navigation shell coordinating:
LiquidAdaptiveNavTheme
Comprehensive theme configuration for all liquid_adaptive_nav surfaces (LiquidAdaptiveNavShell, FloatingPillNavBar, LiquidGlassCapsule, DuoSideActionStrip, and MacOSSidebarNavigation).
LiquidAdaptiveNavThemeScope
Optional inherited scope providing a LiquidAdaptiveNavTheme for subtrees that do not rely on Material ThemeData.extensions (such as CupertinoApp).
LiquidDuoPageContainer
Convenience posture-aware container for pushed routes / detail screens that automatically pads content clear of an asymmetric iOS / iPhone Duo side strip and docks optional duoActionsBuilder actions inside DuoSideActionStrip.
LiquidGlassCapsule
Frosted / liquid-glass capsule surface used by FloatingPillNavBar and DuoSideActionStrip, and usable standalone anywhere in an app.
LiquidNavDestination
Destination entry for FloatingPillNavBar and LiquidAdaptiveNavShell.
LiquidSidebarItem
Item descriptor inside a LiquidSidebarSection of MacOSSidebarNavigation.
LiquidSidebarSection
Logical group of items inside MacOSSidebarNavigation.
LiquidSidebarToggleButton
Sculpted macOS-style sidebar toggle button used in both MacOSSidebarNavigation and LiquidAdaptiveNavShell's collapsed toolbar.
LiquidSidebarToggleIcon
Custom crisp vector icon matching the macOS Finder/Notes sidebar toggle glyph.
LiquidTactileButton
Platform-adaptive tactile wrapper used inside pills, strips, and sidebars:
MacOSSidebarNavigation
Generic collapsible macOS / desktop sidebar supporting sectioned destinations, per-item action callbacks, custom brand header/footer, and full LiquidAdaptiveNavTheme Light/Dark customization.
PostureBreakpoints
Configurable breakpoint thresholds (in logical pixels) for categorizing window width.
PostureEvent
Event emitted when posture, hinge crease, display regions, or device orientation changes.
PostureRect
Represents a 2D bounding rectangle in logical pixels (dp/points).
ResponsivePostureBuilder
Platform-safe wrapper around AdaptivePostureBuilder. Uses AdaptivePostureBuilder natively on iOS & Android and falls back to responsive window-size classification on macOS/Windows/Linux/Web without invoking mobile-only Method/Event channels.
ResponsivePostureOverride
Inherited override scope so UI previews and widget tests can inject simulated foldable PostureEvent states into any subtree using ResponsivePostureBuilder.

Enums

DeviceType
Represents the classified hardware or OS device type.
DuoSideStripEdge
Hardware edge where an asymmetric iOS side strip (e.g. iPhone Duo) resides.
FloatingNavPlatformStyle
Controls how FloatingPillNavBar and LiquidAdaptiveNavShell style navigation chrome.
FoldState
Represents the folding state of a foldable or dual-screen device.
PostureOrientation
Represents the physical display orientation.
WindowSizeClass
Represents the window size categorization based on available width. Follows modern adaptive window size classifications:

Functions

isAppleTargetPlatform(BuildContext context) → bool
Returns true when Theme.of(context).platform targets Apple hardware (iOS or macOS).