Skip to main content

liquid_glass_widgets 1.23.0 copy "liquid_glass_widgets: ^1.23.0" to clipboard
liquid_glass_widgets: ^1.23.0 copied to clipboard

iOS 26/27-style liquid glass widgets for Flutter. Built on a custom fragment shader for real blur, liquid interactions, specular highlights, and chromatic aberration.

1.23.0 #

Features #

  • CoreAnimation glassFace optical model, luma-bracketed tints & size-adaptive optics (LiquidGlassSettings.sizeAdaptive) (#559):
    • Empirically calibrated against live iOS 27.0 (CABackdropLayer / glassBackground archive on iPhone 18 Pro, h = 30–160 pt) and iOS 26.5 CoreAnimation face laws.
    • Adds uFace and uFaceExtra to liquid_glass_render.frag (and mirrors uFace into lightweight_glass.frag for Web/Skia/Desktop GlassQuality.standard), applying CoreAnimation's luminance range mapping, SDR max-luma ceiling applied prior to face fill mixing so light-mode text and card edges are never flat-clipped (including iOS 27 dark mode's exact 0.60 → 0.35 cap across 64–104 pt), perimeter edge bleed for large platters (h > 64 pt), compact-pill bevel scaling (h < 44 pt), large-platter drop-shadow attenuation (1.0 → 0.55 across 64–160 pt), live-calibrated iOS 27 blur-fill frost (frost: 8.0, frostOpacity: 0.50 light / 0.65 dark on controls ≤ 64 pt with CoreAnimation directional Lighten 0.90 / Darken 0.75 blurFill blending so dark text on light cards stays ghostly while colorful cards and bright rim refractions shine vividly, ramping smoothly to 0.88 on large platters ≥ 160 pt while preserving 1.0 on overlay platters), and quantized 0.5 pt frost scaling on standalone large iOS 26 surfaces (keeping iOS 27 and shared GlassBackdropGroup frost sigma constant to preserve Impeller's single-pass blur cache). Resolves both washed-out dark-mode glass over bright backdrops and overly opaque light-mode tab bar frost across GlassStyle.ios26 and GlassStyle.ios27.
    • Adds luma-bracketed chromatic tinting (applyGlassColorBracketed in render.glsl), preventing saturated glass tints from clipping toward cyan/yellow over bright highlights while preserving GlassBodyMode.clear and custom/classic settings bit-for-bit.
  • Clear glass presets (LiquidGlassSettings.ios26Clear, ios27Clear, clear(context)) (#559): Adds UIGlassEffect.Style.clear presets calibrated directly to iOS 26.5 (blur: 1.8, no frost veil or shadow) and live iOS 27.0 (blur: 0.75, saturation: 1.06, deep paraxial edge refraction, zero drop shadow).
  • Scoped 2-read hoisted GlassBackdropGroup (GlassBackdropGroup.hoisted, GlassBackdropHoistSlot) (#559): Adds a tree-scoped Pass-1 frost hoist slot (automatically wired into GlassScaffold between body content and floating chrome, and directly available via GlassBackdropGroup.hoisted(backdrop:, overlay:)) plus a shared Pass-2 glassKey on RenderGlassBackdropGroupBoundary. Non-overlapping glass layers with pure translation hoist Pass 1 blur/frost into one shared container (1 framebuffer copy) and share glassKey on Pass 2 (1 framebuffer copy), reducing an entire screen of N glass surfaces from N + 1 full-screen copies to 2 with zero global static registries (measured -31.3% Dark raster time and -21.0% CPU load on physical iPhone 16 Pro at 120 Hz).
  • Order-independent O(N) 2-nearest normal-weighted SDF metaball union & CoreAnimation corner gradients (sdf.glsl, liquid_glass_geometry_blended.frag) (#559): Upgrades cached multi-shape geometry blending to track the two closest shapes and their analytical outward normals in a single literal-indexed O(N) pass, weighting smooth union by 0.5 * (1 - dot(n1, n2)) so facing edges form silky metaball necks while parallel edges stay bulge-free, and clamping saddle-point gradient divisors for seam-free neck refraction. Single native frosted platters additionally compute their cached surface normal from CoreAnimation's rounder 5/3 × r box blended with gradientOvalization = 0.5 above 66 pt (0 extra per-frame GPU cost).
  • Control-level enabled on GlassSegmentedControl & GlassSegmentedControl.scrollable (#559): Adds bool enabled = true blocking taps, drags, scrolling, and keyboard activation while dimming the resting control to 50% opacity.
  • Lifecycle-aware & optional frame-driven sampling on GlassContentAwareScope (sampleOnFrame) (#559): Pauses sampling automatically when the app leaves AppLifecycleState.resumed, adds opt-in sampleOnFrame: true (throttled persistent frame callback with zero idle timers for video/carousels), and composites premultiplied alpha accurately over backgroundColor in computeVerdict.
  • GlassListTile checked radio semantics (GlassListTile.semanticsChecked) (#563): Reports a tappable row as a checked or unchecked item of a mutually exclusive group, in place of the button role, without changing visuals, so a checkmark list tells VoiceOver on macOS which row is chosen (AXRadioButton, AXValue 1 or 0). macOS gives the button role precedence over radio button and reports no selected state, so a selected flag around the row did not reach VoiceOver there. On iOS and macOS the checked row is also reported as selected, as Flutter's radio buttons are. null (the default) keeps the button.
  • GlassSlider.semanticFormatterCallback (#568): Formats the value a screen reader announces, and the values an increment or decrement reaches, as Material's Slider.semanticFormatterCallback does. The value was always a percentage of the range, so a 0.5x to 2x speed slider at 1x read "33%". null (the default) keeps the percentage.
  • GlassToggle.button as one option of a mutually exclusive set (semanticsInMutuallyExclusiveGroup) & GlassButton.isChecked (#571): A toggle that is one of a set where exactly one is on, such as a choice chip, reads as a radio button of a mutually exclusive group, checked or not, in place of a switch, without changing visuals. iOS reads a toggled node outside such a group as a switch, which says nothing of the other options, and macOS read no state at all (see below). On iOS and macOS the checked toggle is also reported as selected, as Flutter's radio buttons are, since iOS reads a radio button's selected trait rather than its checked state. false (the default) keeps the switch. GlassButton.isChecked carries the radio state for any button.
  • GlassToggle.button label direction (textDirection) (#571): Gives the label its own direction, such as right-to-left for a name the user typed in Arabic or Hebrew in a left-to-right app, on screen and for screen readers. The icon and the padding keep the ambient direction. null (the default) keeps the ambient Directionality.

Changes #

  • Native iOS 26 / iOS 27 default control metrics (#575):
    • GlassSwitch defaults to width: 63.0, height: 28.0 (was 58.0 × 26.0), matching native UISwitch dimensions and its calibrated lifted-lens geometry.
    • GlassTabBar.bottom, .searchable, and .minimizable default to barHeight: 62.0 (was 64.0) and horizontalPadding: 21.0 (was 20.0), GlassTabBarExtraButton defaults to size: 62.0, and the selected tab icon and label tint with CupertinoTheme.of(context).primaryColor under GlassStyle.ios26 / GlassStyle.ios27 (matching native UITabBar; GlassStyle.classic and explicit selectedIconColor / selectedLabelColor overrides are unchanged).
    • GlassMenu (and menu-backed GlassPullDownButton, GlassButtonGroup, GlassBarItem.menu, and GlassTabBarExtraButton.menu) defaults to menuWidth: 250.0 (was 200.0), matching native UIMenu.
    • GlassModalSheet defaults to halfSize: 0.525 (was 0.45), matching live iOS 26 / iOS 27 floating .medium sheet height (~52.5% of screen height on Face ID iPhones) while keeping showDragIndicator: true, and GlassModalSheet.show uses brightness-aware barrier scrims (0x2B000000 light / 0x6D000000 dark) under GlassStyle.ios26 / GlassStyle.ios27 matching UIKit's dark-mode sheet dimming.
  • GlassSwitch has no English default name (#564): Without semanticLabel the switch no longer names itself "Switch". VoiceOver and TalkBack already announce it as a switch, so the fallback was read twice ("Switch, switch button") and never localized. A switch with no label of its own takes its name from what surrounds it: MergeSemantics around a GlassListTile (without onTap) with a trailing GlassSwitch reads as one switch named by the tile's title.
  • GlassSlider has no English default name (#568): Without label the slider no longer names itself "Slider". It was English in every language, and VoiceOver and TalkBack already announce the role ("adjustable"). A slider with no label now reads like a UISlider or SwiftUI Slider without one: its value and its role. label is documented as the screen reader name it is.
  • GlassToggle.button label wraps (#571): A label wider than the space the toggle gets now wraps onto more lines, centred, and the capsule grows to fit, as a SwiftUI button's label does; before, it was cut to one line with an ellipsis, so at large accessibility text sizes a label such as "Recently Added" read "Recently Ad…". A label that fits, and a toggle in an unbounded horizontal scroll view, stay on one line. A toggle with an explicit height keeps one line with an ellipsis.

Bug Fixes #

  • GlassModalSheet exact spring-settle on detent snaps (#575): Passes snapToEnd: true to SpringSimulation in detent snaps so overdamped springs settle to the exact detent coordinate (progress == 1.0) rather than parking slightly short within simulation tolerance.
  • GlassScaffold native GlassTabBar bottom scroll edge parity (#559): Suppresses the automatic opaque soft bottomEdgeFade behind GlassTabBar under GlassStyle.ios26 and GlassStyle.ios27 (matching native UITabBar where scrolling cards pass at full colour and contrast through the floating glass bar and its rim refractions). Explicit bottomEdgeFade: true, non-soft edgeStyle (.blur / .hard), custom bottomEdgeFadeExtent, non-tab bottom bars (GlassToolbar), and GlassStyle.classic remain unchanged.
  • Untinted GlassButton(style: GlassButtonStyle.prominent) & GlassIconButton(style: GlassButtonStyle.prominent) (#559): In glass mode, enabled untinted prominent buttons now default to CupertinoTheme.of(context).primaryColor with Rec. 709 luminance-contrasted foregrounds (eliminating illegible white-on-white light-mode pills), and disabled prominent buttons revert to neutral glass pills with dimmed foregrounds (matching GlassBarItemStyle.prominent, GlassToggle.button, and UIKit).
  • Disabled GlassSlider thumb & track dimming (#559): GlassSlider(onChanged: null) now dims its resting thumb and track to 50% opacity (matching native disabled UISlider).
  • GlassMenu mid-screen horizontal auto-centering (#559): Centers menus horizontally on their trigger whenever neither left-edge nor right-edge alignment fits inside the viewport, before applying safe-area clamping.
  • GlassDisclosureGroup header text at large text sizes (#566): The default header cut its title and subtitle to one line each with an ellipsis, so at large accessibility text sizes they read "Advanced…" / "Rarely neede…". They now wrap, as a SwiftUI DisclosureGroup label and GlassListTile do. A title or subtitle Text with its own maxLines and overflow still applies them.
  • GlassDisclosureGroup header on iOS VoiceOver and from the keyboard (#567): iOS VoiceOver reads no expanded flag, so the header read "button" whether the group was open or closed; on iOS it now carries the state as its value, in the app's language (CupertinoLocalizations' "Collapsed" / "Expanded", the words CupertinoExpansionTile puts in its hint; as a value they are read right after the title, and also with VoiceOver's hints turned off). macOS and Android keep reading the expanded flag. The default header is now a focusable control: Tab stops on it, it shows the pressed highlight while focused, and Space or Enter opens and closes the group (calling onExpansionChanged). The rows of a closed group, which stay built at zero height, no longer take keyboard focus, so Tab no longer stops on rows that cannot be seen and Space or Enter no longer activates them.
  • GlassSwitch reads as a switch on macOS (#564): The switch's semantics node was also a button, and macOS gives button its role before the switch role and then reports no on/off state, so VoiceOver on the Mac read "button" whether the switch was on or off. It is now a switch only (AXSwitch with AXValue 1 or 0); iOS and Android read it as before.
  • GlassSwitch 44 pt tap target (#565): The default 63 x 28 pt switch reported its semantics node, and took touches, only over its track, under the 44 x 44 pt minimum (iOSTapTargetGuideline) that VoiceOver, Voice Control, Switch Control and fingers rely on. Its semantics node is now at least 44 x 44 pt everywhere, centred on the track, without changing its layout size, its look or its focus ring. Its touch area extends to 44 pt only as far as the parent's bounds allow, because a hit test stops at the parent: a parent that is already 44 pt tall gives the full area, and one no taller than the track, such as the row a GlassListTile puts its trailing widget in, gives none beyond it. A touch or drag that starts beside the track works as one on it does, and the corners beside the round track ends now take touches too. A switch of 44 pt or more keeps its own size as its target.
  • GlassSlider change callbacks for screen-reader adjustments and the end of a drag (#569): A VoiceOver or TalkBack increment or decrement called onChanged only, so an app that saves the value in onChangeEnd lost every change made with a screen reader; it now reports onChangeStart, onChanged and onChangeEnd, as Flutter's Slider does. onChangeEnd at the end of a drag reported the value from the slider's last build, not the drag's last value, when the last move and the lift arrived with no frame in between; it now reports the last value onChanged reported.
  • GlassSlider arrow keys (#570): A focused slider took keyboard focus but ignored the arrow keys, so it could not be moved from a hardware keyboard (a Mac, an iPad with a keyboard, Full Keyboard Access). Up and the trailing arrow (Right, or Left in a right-to-left layout) now increase it by one step, Down and the leading arrow decrease it, and each press reports onChangeStart, onChanged and onChangeEnd, as Flutter's Slider does. The step is the one a screen reader uses: one division, or a tenth of the range. Under NavigationMode.directional only Left and Right adjust it, and Up and Down still move focus.
  • GlassToggle.button and GlassButton(isToggled:) read their on/off state on macOS (#571): The toggle's semantics node was also a button, and macOS gives button its role before the switch role and then reports no on/off state, so VoiceOver on the Mac read "button" whether the toggle was on or off. A toggled button now reads as a switch with its state on every platform; iOS and Android already read it as a switch, so nothing changes there.
  • GlassToggle.button 44 pt tap target (#571): The 34 pt capsule (and a narrow one, such as a one-letter weekday, under 44 pt wide) reported its semantics node, and took touches, only over itself, under the 44 x 44 pt minimum (iOSTapTargetGuideline) that VoiceOver, Voice Control, Switch Control and fingers rely on. Its semantics node is now at least 44 x 44 pt, centred on the capsule, without changing its layout size or its look. Its touch area extends to 44 pt only as far as the parent's bounds allow, because a hit test stops at the parent: a toggle in a row no taller than the capsule takes touches only over the capsule's height. A toggle of 44 pt or more keeps its own size as its target.
  • Searchable and minimizable tab bar press lift after dispose (#573): A pointer up or cancel that arrives after a pill's PressAmbientLift has left the tree (for example when the press swaps the pill out or pops the route) no longer throws AnimationController.reverse() called after AnimationController.dispose() (in release builds, Null check operator used on a null value from AnimationController.stop). The press Listener stays in the pointer-down hit test path, so its callbacks now check mounted before driving the lift, as GlassTextField does since #549.
  • GlassModalSheet, GlassSheet, and GlassSegmentedControl pointer callbacks after dispose: Guards raw Listener callbacks with mounted checks so pointer move, up, or cancel events arriving after unmount never drive a disposed AnimationController or call setState() after dispose.
  • GlassLargeTitle and GlassAppBar titles for screen readers (#574): The large title was plain text, so VoiceOver's headings rotor could not find the page's title, and the bar title's header flag reached macOS but not iOS, which gives the header trait only to a node with a heading level. Both are now level-1 headings (header with headingLevel: 1), on every GlassAppBar title. With a largeTitleController, both titles were also in the semantics tree from halfway through the collapse on, and the large title stayed there after it had faded out behind the bar, so VoiceOver read the title twice and stopped on one that could not be seen. Exactly one is read now: the large title until the bar title starts to fade in, halfway through the collapse, and the bar title from then on. Nothing changes on screen.
  • Standard glass on the first screen without an awaited initialize() (#572): A LightweightLiquidGlass surface built before the lightweight shader program had loaded painted the shader-less fallback, a flat wash of its glassColor, and kept it until something unrelated rebuilt it. On native platforms, in an app that starts LiquidGlassWidgets.initialize() without awaiting it, or never calls it, every Standard-quality surface on the first screen lost its blur and rim, and a selected GlassToggle.button or other prominent tinted button read as untinted glass (in dark mode, a dark fill behind dark text). The surface now rebuilds once the shared shader exists. LightweightLiquidGlass.preWarm() and GlassEffect.preWarm() now return the load in flight to a caller that comes during the load, so every surface mounted in the same frame waits for it; before, a second GlassEffect (such as a second GlassSwitch thumb) returned at once and never took the shader.
  • iOS 27.2 light-mode rim outline contrast on white and near-white backdrops (#562): Raises rimShadeEnds on LiquidGlassSettings.ios27Light and GlassThemeSettings.ios27Light from 0.2 to 0.3, changes the surface hairline angular falloff from cos^3.5 to cos² in liquid_glass_render.frag (preserving cos^3.5 for isClearIndicator) and lightweight_glass.frag, and sharpens the Standard-path light-mode edge anti-aliasing, half-point hairline (shadeWeight: 0.314), and additive nativeRimLight so light glass controls keep crisp separation over white and near-white backdrops.

Documentation #

  • Added docs/IOS26_27_OPTICS_SPEC.md and refreshed docs/ROADMAP.md (#575): Documents the CoreAnimation-calibrated optical architecture, GPU/shader invariants, and planned post-1.23.0 parity specifications.

Thanks to @Hamdym12 (#562), @imariman (#563–#572, #574), and @fryette (#573) for their contributions.

1.22.0 #

Features #

  • GlassBadge solid surface style (surfaceStyle) (#554): Adds surfaceStyle to GlassBadge and GlassBadge.dot. When GlassSurfaceStyle.solid is set explicitly or inherited from an ancestor InheritedGlassSurfaceStyle (such as a solid card, grouped section, or solid GlassModalSheet), badges render as crisp flat iOS notification pills or status dots with zero AdaptiveLiquidGlassLayer / shader overhead, resolving CupertinoDynamicColor values against GlassTheme.brightnessOf and MediaQuery.maybeHighContrastOf.
  • GlassToggle.button (Toggle(.button)) & GlassButton.isToggled (#545): Adds GlassToggle.button, the native iOS 26/27 Liquid Glass capsule toggle button mirroring SwiftUI's Toggle(...).toggleStyle(.button) (calibrated against iOS 27.2 Simulator: 34 pt compact pill height, 44 pt icon-only min width, clear refractive glass when off → prominent tinted glass when on with automatic Rec. 709 luminance contrast, muted neutral glass pill when disabled-on, haptic selection click, keyboard Space/Enter activation, single-node toggled semantics, and automatic GlassSurfaceStyle.solid inheritance via InheritedGlassSurfaceStyle). Also adds bool? isToggled to GlassButton and GlassButton.custom forwarding toggle semantics to GlassFocusRegion.
  • iOS 26/27 confirmation dialog (showGlassConfirmationDialog, GlassConfirmationDialogAction) (#542): Mirrors SwiftUI's .confirmationDialog() and UIKit's UIAlertController(preferredStyle: .actionSheet) calibrated against iOS 27.2. When anchored to a source control via morphFrom (GlassMorphTrigger) or morphFromRect, liquid-morphs into a 240 pt floating Liquid Glass popover platter with a clear dismiss barrier (omitting Cancel by default, auto-flipping/clamping inside safe areas, and retracting back with trigger recoil on dismiss); when unanchored, presents the 320 pt centered platter with stacked 48 pt capsule actions and a Cancel button by default. Supports destructive, prominent primary (Return-key activation), custom tintColor / foregroundColor, disabled (onPressed: null), and dismissOnPress actions with live theme and brightness updates.
  • GlassModalSheet surface style (surfaceStyle) (#544): Adds surfaceStyle to GlassModalSheet, GlassModalSheetScaffold, and GlassModalSheet.show. GlassSurfaceStyle.solid makes the sheet opaque at every detent and at every moment: while it is dragged, slides in or out, or resizes as a GlassSheetDetent.fitted sheet. With morphFrom, the droplet starts as glass and the opaque fill fades in as it grows, as for a large sheet. It is filled with expandedColor / expandedDarkColor (default #F2F2F7 light, white in GlassStyle.classic, #1C1C1E dark), its glass effects are set to zero under the fill, so the premium renderer skips its glass pass, and it publishes GlassSurfaceStyle.solid to its content so nested buttons, chips, and inputs render solid. The default, GlassSurfaceStyle.glass, keeps today's glass that turns opaque toward the large detent.
  • GlassModalSheet resistance below the smallest detent (minDetentResistance) (#553): Adds minDetentResistance to GlassModalSheet, GlassModalSheetScaffold, and GlassModalSheet.show. null (the default) keeps today's behaviour, where resistance applies on both sides. 0 stops a downward drag at the smallest detent, so a GlassSheetMode.persistent sheet used as always-visible chrome can no longer be pulled under the screen edge. Resistance above the largest detent is unaffected.
  • Native iOS 26 / 27 tab-bar lens optics for GlassTabBar.bottom, .inline, .searchable, and .minimizable (indicatorLens, IndicatorLensOptics) (#541, #556): While the lens is lifted it now bends what is under it the way UITabBar's _UILiquidLensView does, with values read from UIKit (the archived lens layer tree, and its displacement maps rendered over a position-encoded ramp). The selected items, each magnified on its own centre, are drawn inside the lens through a warp of their own (lens_content_warp.frag), so an icon or label crossing the rim folds back into a mirrored, compressed band while preserving the unbroken 360° outer glass hairline. The bar and the page behind the lens get a separate, gentler outward warp clamped cleanly to the capsule silhouette, and the glass splits red from blue across the outer 14 pt into smooth spectral fringes (keeping dark-mode fringes translucent over colourful backdrops). Needs Impeller and GlassQuality.premium; elsewhere the lens keeps its single-pass refraction. Every value is tunable through IndicatorLensOptics, and IndicatorLensOptics.disabled opts out.

Changes #

  • GlassTabBar.magnification defaults to 1.16 (#541) (was 1.15), the scale UIKit gives every selected item while the lens is lifted.

Bug Fixes #

  • Disabled GlassButton Impeller Metal glass preservation (#545): In GlassSurfaceStyle.glass mode, disabled buttons now dim only their interior content (Opacity(opacity: 0.5)) inside AdaptiveGlass rather than wrapping the glass shader in an ancestor Opacity saveLayer, preventing disabled glass buttons and toggles from losing their refractive pill surface on Impeller Metal.
  • GlassTextField press callbacks after dispose (#549): A pointer up or cancel that arrives after the field has left the tree (for example when the press itself pops the route or swaps the field out) no longer throws setState() called after dispose(). The press Listener stays in the pointer-down hit test path, so its callbacks now check mounted before updating the press-scale state.
  • GlassModalSheet persistent sheet dipping below its smallest detent on a fast fling (#550): In GlassSheetMode.persistent the snap spring is now clamped at the smallest detent, so a hard downward fling no longer carries the sheet below it (and, flung hard enough, below the screen edge) before settling. A release from a rubber-band drag below the detent still springs back as before; GlassSheetMode.dismissible sheets are unchanged.
  • GlassSwitch under Reduce Motion (#551): With GlassAccessibilityData.reduceMotion (system Reduce Motion, or a GlassAccessibilityScope override) the switch no longer plays its 380 ms thumb travel, press bloom, or overshoot settle. Taps, drags, cancelled drags, and external value changes all land on the next frame; value reporting, the disabled state, and semantics are unchanged. Previously the flag only suppressed haptics.
  • GlassTabBar badge halo cut at the track edge (#552): A GlassBadge on a tab paints a soft halo that reaches past the top of the tab track, and the lens masks sliced it in a straight line. The inverse JellyClipper mask now extends past the track (it only has to cut the lens out), and the unselected icon layer no longer uses a saveLayer while the lens moves, since that layer is bounded by the track and cropped the overflow again. The lens side keeps its existing clip.
  • Native lens rim optics, single-pass fallback flicker, and GPU pass efficiency (#556): Hardened lens_content_warp.frag and liquid_glass_render.frag to eliminate bottom-rim glyph ghosting, curved-corner unselected-glyph bleed, dark-mode opaque grey halos, and single-pass isBarIndicator light/dark probe flickering over bright artwork; eliminated a redundant offscreen saveLayer during active 120 Hz drags (Clip.none while warping), resting 1/255 overdraw, and idle inner-shadow mounting while cutting shader SDF evaluations and texture fetches.

Deprecations #

  • showGlassActionSheet (GlassActionSheetAction, GlassActionSheetStyle) is deprecated in favour of showGlassConfirmationDialog (#542): Legacy action sheet APIs remain functional in 1.x and will be removed in 2.0.0.
  • GlassChip (#545): Marked @Deprecated in favour of GlassToggle.button (for selectable/filter toggles) and capsule-shaped GlassButton.custom (for pill actions). Will be removed in 2.0.0.
  • GlassSheet (#545): Marked @Deprecated in favour of GlassModalSheet (GlassModalSheet.show with GlassSheetMode.dismissible or GlassSheetMode.persistent). Extracted GlassInteractionSilence into its own non-deprecated shared widget (lib/widgets/shared/glass_interaction_silence.dart, exported from liquid_glass_widgets.dart and re-exported from glass_sheet.dart with zero breaking changes). Will be removed in 2.0.0.

Documentation #

  • Refreshed docs/PLATFORM_SUPPORT.md (#546): Updated platform matrices, all 6 fragment shaders, Flutter 3.50 desktop Impeller defaults, GlassStyle, GlassSurfaceStyle.solid, PlatformViewGlassMode.passthrough, and shader compatibility rules.

Thanks to @Hamdym12 (#541), @ahey (#544), and @NAVEGA-APP (#549–#553) for their contributions.

1.21.0 #

Features #

  • GlassAppBar iOS 27 scroll-under blur surface (GlassAppBarSurfaceStyle) (#534, #539): Adds surfaceStyle (automatic, transparent, fullBlur), automaticSurfaceVisibility, surfaceAppearanceExtent, backdropBlurSigma, backdropTint, bottomBorder, and notificationPredicate to GlassAppBar and GlassAppBar.pinned. Under GlassStyle.ios27, automatic (default) stays transparent at scroll offset 0 and fades in a full-width blurred bar with a 1 px hairline bottom border as content scrolls behind it — coordinating automatically with GlassScaffold and respecting Reduce Transparency (GlassStyle.ios26 and GlassStyle.classic remain transparent). Pass surfaceStyle: GlassAppBarSurfaceStyle.transparent (or use const GlassThemeData.ios26()) to keep the iOS 26 borderless bar on ios27.
  • GlassDialogAction prominent primary styling, tintColor, foregroundColor, and Return-key activation (#536, #538): On GlassStyle.ios27 and GlassStyle.ios26, enabled non-destructive isPrimary: true actions now fill with tintColor ?? CupertinoTheme.of(context).primaryColor (bridging Material colorScheme.primary automatically), auto-contrasted white/black text, native press/hover feedback, and hardware Return/Enter activation when a single primary action is present. Adds optional tintColor and foregroundColor (supporting CupertinoDynamicColor) across all GlassStyle presets, reverting disabled actions to the neutral capsule and keeping destructive primary actions neutral with Semibold red text.
  • GlassBarItem.text and GlassBarItemStyle.prominent (#535): Adds text-label pinned bar items (GlassBarItem.text) and GlassBarItemStyle.prominent across all GlassBarItem factories, flooding enabled prominent capsules with tintColor ?? CupertinoTheme.of(context).primaryColor and auto-contrasted foregrounds, reverting disabled items to neutral glass, and smoothly morphing plain ↔ prominent capsules across route transitions.
  • Content-fitted modal sheets (GlassSheetDetent.fitted) (#528): Pass detents: const {GlassSheetDetent.fitted} to GlassModalSheet, GlassModalSheetScaffold, or GlassModalSheet.show for a dismissible sheet whose height dynamically follows its content (capped at fullSize), preserving frame stability through drags, springs, slides, morphs, and iPhone Duo vertical bar alignment. Reports GlassSheetState.half internally so existing onStateChanged handlers and sheets are unchanged.

Bug Fixes #

  • showGlassDatePicker desktop/iPad width (maxWidth), header accent, and narrow-viewport layout (#537): Caps modal picker width to 400 px by default on wide viewports (maxWidth: null to opt out), tints header Cancel/Done actions with tintColor / primaryColor, and fixes narrow-viewport RenderFlex overflows in GlassDatePicker.compact and .graphical.
  • Live theme & brightness updates in open modals (#529, #532): Captures only subtree-local GlassTheme / CupertinoTheme overrides below the target Navigator / Overlay, keeps open modal brightness synced live with GlassTheme.brightnessOf, and makes GlassTheme an InheritedTheme so Flutter's own showDialog preserves overrides.
  • GlassPopover reopen after close (#533): Resets GlassMorphController when an intrinsic-height GlassPopover finishes closing so subsequent opens are never blocked.

Thanks to @ahey (#528) and @yohom (#533) for their contributions, and to @yuanzhihong1 (#534, #536) for the detailed feature proposals.

1.20.0 #

Features #

  • Native iOS 26 / 27 selection jelly for GlassTabBar and GlassSegmentedControl (indicatorJelly, IndicatorJellyPhysics) (#523, #530): The indicator now moves like the native UITabBar lens instead of squashing into a tall, narrow blob. On a tap the edge facing the destination is pulled ahead while the lens thins; on landing the pill squishes from the trailing side (≈0.95× after one tab, ≈0.8× after four), bulges, and settles in ≈0.75 s without a rebound while preserving native outer edge overhang. During drags an acceleration-driven oscillator fitted to _UILiquidLensView stretches on speed-up, relaxes at steady speed, and bulges vertically on deceleration or direction reversal while keeping the top/bottom refractive pinch intact. The resting pill and the selected-icon mask follow the same shape. Every value is tunable through IndicatorJellyPhysics, and IndicatorJellyPhysics.disabled keeps the classic squash.
  • GlassThemeData.minimal(...) convenience constructor (#517 follow-up): Adds const GlassThemeData.minimal({style, interaction, brightness}) pairing GlassThemeVariant.minimalLight and GlassThemeVariant.minimalDark for shader-free GlassQuality.minimal theming across light and dark modes (matching .ios27(), .ios26(), and .classic()).

Bug Fixes #

  • GlassModalSheet under a MediaQuery that isn't the window's size (#525, #526): The sheet now measures its detents, progress, snap targets and expand-first scroll gate against the MediaQuery height it rests by, and converts drags into its own layout pixels. Where the two differed — one side of a half-folded display presented by show(), or a page laid out at one width and scaled to the screen — the sheet rested by one height and judged itself by the other: a two-detent sheet at full couldn't scroll its content, a resting half-only sheet with a pixel halfSize couldn't either, and drags rubber-banded or fell behind the finger.
  • GlassMenu & morph overlays settling after slow frames (#522): Advance GlassMorphController.phaseElapsedSeconds to its settled state when AnimationController stops on a slow frame (such as cold shader compilation with GlassWarmUpMode.never), preventing GlassMenu from getting stuck as a blurred round bubble with hidden rows.
  • Premium glass morphs (#520): Refresh the backdrop clip when the glass shape changes without a layout change, preventing a second contour at the frosted corners of an expanded GlassMenu.
  • GlassQuality.standard morph overlays on Impeller: Gate LiquidGlassBlendGroup creation in GlassModalSheet, GlassMenu, and GlassPopover morph overlays strictly on GlassQuality.premium, preventing missing-InheritedGeometryRenderLink assertions when morphing with GlassQuality.standard on Impeller.
  • GlassModalSheet morphed close-origin after detent change (#507 follow-up): When a morphFrom sheet opened at half is dragged to full or peek and dismissed at rest (barrier tap, close button, or Navigator.pop), frame 1 of the closing droplet morph now starts from the sheet's live resting detent (matching its active margins, bottom offset, corner radii, and fill) instead of snapping back to the initial restingState.

Performance #

  • Scrolling & bar chrome (GlassScaffold, GlassTabBar, GlassAppBar, GlassToolbar, GlassScrollEdgeEffect): Shares backdrop reads across top and bottom bar chrome and progressive blur strips, removes idle saveLayer clipping from resting GlassTabBar indicators, and caches scroll-edge mask strips to reduce per-frame compositor passes while scrolling.
  • Sheets & menus (GlassModalSheet, GlassMenu, GlassContextMenu): Pre-builds sheet content outside drag animations, removes unused fade masks and per-item Opacity layers during menu morphs, and unmounts GlassContextMenu's offstage measurement pass after layout — reducing UI rebuilds and offscreen passes during drags and open/close transitions.
  • Shaders & GPU workload: Reduces texture fetches and shader ALU work across the glass, indicator, geometry, and progressive blur shaders (skipping frost sampling on outer hairlines, using isotropic frost kernels and hardware filtering where safe, and taking a single-tap path across flat interiors) while preserving visual fidelity.
  • Memory, readbacks & idle overhead: Avoids duplicate geometry matte allocations on standalone useOwnLayer surfaces, tightens shadow clip bounds, crops GlassContentAwareScope luminance reads to control bounds instead of full-screen snapshots, skips unnecessary geometry rebuilds on no-op relayouts, lazily allocates spring/animation tickers so resting controls hold zero active tickers, and narrows MediaQuery dependencies so keyboard animations do not rebuild unrelated widgets.
  • Adaptive quality (GlassAdaptiveScope / GlassQualityAdapter): Fixes frost-step synchronization when stepping quality up or down, shortens initial warmup so slower devices adapt sooner, and keeps GlassFrostBudget in sync with blended glass groups.

Documentation #

  • GlassModalSheet solid content opt-in (1.x) (#514): Documented wrapping dense controls, chips, and inputs inside GlassModalSheet in InheritedGlassSurfaceStyle(surfaceStyle: GlassSurfaceStyle.solid, child: ...) in docs/GLASS_MODAL_SHEETS_GUIDE.md and skills/liquid-glass-widgets/SKILL.md.

Thanks to @Hamdym12 (#523), @jfhair (#525, #526), and @yugai (#520) for their contributions, and to @AlexDochioiu (#522) and @almazfm (#514) for their detailed reports.

1.19.0 #

Features #

  • GlassThemeVariant.minimalLight and GlassThemeVariant.minimalDark (#517): Adds brightness-matched minimal-quality theme variants using iOS 27's neutral tints (#F8F8F8 at 53% in light mode, white at 12% in dark mode) while leaving GlassThemeVariant.minimal unchanged.
  • GlassDialog and GlassDialog.show overrides (shape, actionShape, actionTextStyle) (#512, #518): Adds optional shape and action typography overrides (all null by default to keep native ios26/ios27 and classic defaults) while preserving role colors and side-by-side vs. stacked label measurement.
  • GlassPopoverController and GlassPopover.controller (#511, #518): Adds programmatic open(), close(), toggle(), and isOpen control for GlassPopover (mirroring GlassMenuController), with idempotent transitions and mid-close blur continuity.
  • GlassSearchBar.cancelButtonAlwaysVisible (#510, #518): Keeps the cancel button visible without focus when showsCancelButton: true (for modal search flows), applies post-mount flag changes dynamically, and forwards enabled to the cancel button.
  • GlassChip.enabled (#509, #518): Adds optional bool? enabled across both glass and solid styles — null preserves handler-derived defaults, true without handlers draws an inert full-strength informational pill read as static text, and false disables both onTap and onDeleted at 50% opacity.
  • Text input & selection controls (autofillHints, autocorrect, enableSuggestions, selectionControls) (#505): Forwards all four parameters to CupertinoTextField across GlassTextField, GlassPasswordField, GlassTextArea, and GlassSearchBar (GlassPasswordField defaults autocorrect and enableSuggestions to false).
  • GlassSwipeActions enabled & backgroundColor (GlassListTile.swipeBackgroundColor) (#505): Adds enabled (default true) and backgroundColor (resolving CupertinoDynamicColor; pass Color(0x00000000) to suppress the backing highlight).
  • GlassTabBarExtraButton.selected and GlassButton.isSelected (#505): Allows destination extra buttons in GlassTabBar.bottom and GlassTabBar.searchable to announce selection, adopt selectedIconColor, and suppress the main tab pill's indicator when active.

Bug Fixes #

  • GlassModalSheet post-handoff hit-testing with morphFrom (#507): Clears the morph blob clipper once the open morph hands off so taps and drags above the initial detent (e.g. after dragging half → full) hit the sheet instead of the modal barrier.
  • GlassSheet.show top safe-area bound (#508): Bounds tall content-sized sheets below the top status bar / Dynamic Island so their content scrolls cleanly regardless of useSafeArea (which continues to govern the bottom inset).
  • GlassMenu on premium tab bars (#504, #506): Excludes fully dematerialized grouped triggers from the shared LiquidGlassBlendGroup geometry matte while the menu is open, removing the lingering circular glass rim on Impeller.
  • GlassSwipeActions drag arena & child state (#505): Stops claiming horizontal drags when disabled, empty, or dragging toward an empty side so ancestor horizontal scrollables (PageView, horizontal ListView) swipe freely without remounting child.
  • GlassTabBar keyboard Tab focus & RTL order (#505): Excludes the magnified indicator overlay from keyboard focus so Tab visits each tab once in reading order (right-to-left in RTL).
  • GlassNavigationShell & GlassAppBar.pinned in IndexedStack / StatefulShellRoute.indexedStack (#505): Ignores pinned bar registrations in offstage/muted branches and re-resolves when a tab returns onstage.

Thanks to @almazfm (#507–#512, #517) and @yugai (#504, #506) for their contributions.

1.18.0 #

Features #

  • GlassButton and GlassIconButton solid surface & glass tint support (surfaceStyle, color, tintColor, GlassIconButton.iconColor, GlassIconButton.style) (PR #495): Both buttons (including GlassButton.custom) now accept surfaceStyle, color, and tintColor (resolving CupertinoDynamicColor), and GlassIconButton adds iconColor, style, and continuous superellipse roundedSquare corners. In GlassSurfaceStyle.solid mode (explicit or auto-inherited inside a solid GlassContainer.card / GlassGroupedSection), buttons render shader-free tertiarySystemFill (filled), primaryColor (prominent), or borderless (transparent) surfaces while preserving press stretch, keyboard focus, contrast-aware foregrounds/press highlights, and GlassMaterialize transitions. In glass mode, tintColor tints filled and prominent glass bodies while keeping active GlassStyle refraction, frost, and rim light.
  • GlassPullDownButton intrinsic capsule width, recursive submenu selection, and GlassMenu passthroughs (PR #494): GlassPullDownButton.buttonWidth is now double? (null by default, resolving to 44.0 for icon-only buttons and intrinsic capsule width for labeled buttons without clipping). onSelected now recurses into nested GlassMenuItem.submenu items, and GlassPullDownButton forwards menuPadding (defaulting to EdgeInsets.symmetric(horizontal: 12) so clamped menus keep a safe screen-edge margin), menuBorderRadius, morphSpeed, controller, and onClose to GlassMenu.
  • GlassPopover morph speed & platform-view backdrop support (morphSpeed, platformViewBackdrop) (PR #494): GlassPopover now accepts morphSpeed (MorphSpeed.normal default) and platformViewBackdrop (false default), and renders its overlay through AdaptiveLiquidGlassLayer.
  • iOS 27 GlassMorphController & LiquidMorphState morph channels (PR #494): Exposes triggerPushDx / triggerPushDy, triggerImpactScale, triggerWidthProgress, platterScale, platterOpacity, contentOpacity, contentBlurSigma, and isPlatterActive on LiquidMorphState, plus GlassMorphController.speed setter, speedMultiplier, phaseElapsedSeconds, phaseStartTriggerWidth, openStartProgress, closeStartProgress, recoilHalfTravelPx, verticalOnlyRecoil, and GlassMorphController.computeCornerRadius for custom morphing widgets.

Bug Fixes #

  • GlassPageRoute and GlassPageTransitionsBuilder rounded transition shadow (PR #496): Uses the sliding card's superellipse shadow during horizontal transitions instead of Cupertino's rectangular edge gradient, removing the straight shadow visible above and below rounded leading corners while preserving Flutter's Cupertino edge shadow when the resolved corner radius is 0. Thanks to @wow-sven for the fix (#496).
  • iOS 27 Liquid Morph open, teardrop close, and recoil parity (GlassMenu, GlassPullDownButton, GlassPopover, GlassModalSheet, GlassMorphTrigger, GlassContextMenu) (PR #494): Calibrated open (ω₀ = 17.0 rad/s, ζ ≈ 0.76) and close (ω₀ = 18.0 rad/s, ζ ≈ 0.86) springs and trajectories against 60 fps native iOS 27 captures — GlassMenu inflates as a near-circular bubble that relaxes into its resting superellipse while rows resolve from soft blur to crisp text; GlassMenu and GlassPopover retract into trigger.center as a single concave teardrop with softened content fade, height-adapted droplet envelopes across short to tall platters, outer-edge non-overshoot clamping, and C⁰ mid-flight open/close reversals; wide triggers contract in place on open and splash horizontally (+1.6% at ~400 ms) on close; triggers ride an immediate parallel ~183 ms catch recoil (GlassContextMenu upgraded to matching iOS 27 spring physics with Reduce Motion support); and expanded submenu stacks collapse coherently with the root platter.
  • Impeller overlay backdrop & blend-group compositing (GlassMenu, GlassPopover, GlassModalSheet, GlassContextMenu) (PR #494): Eliminated ancestor fractional Opacity (saveLayer) wrappers over AdaptiveLiquidGlassLayer and useOwnLayer: true platters, removed duplicate nested LiquidGlassBlendGroup passes on premium Impeller layers, and kept underlying glass triggers suppressed until platter handoff so BackdropFilter never double-tints or blurs the resting button during close.

1.17.5 #

Bug Fixes #

  • GlassDialog, showGlassActionSheet, and GlassQuality.standard / minimal materialize transitions (PR #491, #492): Eliminates the fade-in backdrop blur pop by dissolving alert platters and standard / minimal glass without an ancestor OpacityLayer, preserves child focus/state across transitions, and calibrates GlassQuality.standard alert legibility on ios26 / ios27.
  • GlassTabBar.searchable right-edge anchor during parent resize (PR #488): Animates the search pill's right inset and width so the pill stays anchored to its trailing edge while a parent container resizes or reverses mid-transition. Thanks to @wow-sven for the fix (#488).
  • GlassTabBar.searchable input retention and keyboard-lifted hit targets (PR #489): Retains the CupertinoTextField input client, selection, and composing state across compact/expanded transitions, and keeps search dismiss controls tappable above the keyboard when a bottom accessory is mounted. Thanks to @wow-sven for the fix (#489).

1.17.4 #

Features #

  • GlassSwitch disabled state (GlassSwitch.onChanged is now ValueChanged<bool>?) (#485, #486): Passing onChanged: null disables the switch — rendering it at 50% group opacity (matching UISwitch and CupertinoSwitch), ignoring touch, drag, and keyboard input without lifting into a glass lens, reporting disabled state to assistive technology, and still sliding the thumb on programmatic value updates. Direct callers should update switchWidget.onChanged(v) to switchWidget.onChanged?.call(v).

Bug Fixes #

  • LiquidVerticalRoundedRectangle corner radii in GlassQuality.standard (PR #487): Preserves independent top and bottom corner radii in the Standard glass renderer (LightweightLiquidGlass) instead of applying the larger effectiveRadius to all four corners. Thanks to @wow-sven for the fix (#487).
  • Flutter 3.50.0 / Windows HLSL & Web ANGLE shader single-exit main() (flutter/flutter#190809): Refactored void main() across all five fragment shaders (progressive_blur.frag, lightweight_glass.frag, interactive_indicator.frag, liquid_glass_render.frag, and liquid_glass_geometry_blended.frag) to eliminate early/multiple return; statements alongside sampler2D texture sampling — silencing all four impellerc warnings on Flutter 3.50.0 (flutter build web --wasm, Windows, and mobile) and preventing d3dcompiler_47.dll (FXC) HLSL compilation failures on Windows Direct3D and Chrome ANGLE with zero visual or GPU performance regressions.
  • Shader CI & test guards (scripts/validate_shaders.sh, test/shaders/single_return_main_test.dart): Extended shader validation to enforce single-exit main() statically, run Flutter's impellerc multi-target runtime stage check (failing on any [WARNING]) alongside glslangValidator, and guard against regressions in flutter test across all platforms.

1.17.3 #

Features #

  • Disabled dialog actions (GlassDialogAction.onPressed is now VoidCallback?) (PR #480): Passing null keeps an action in place while ignoring input and reporting disabled state to assistive technology (tertiaryLabel on ios27 / ios26; dimmed GlassButton on classic). Direct callers should update action.onPressed() to action.onPressed?.call(). Thanks to @ncosgray for the contribution (#478, #480).
  • GlassTextField and GlassTextArea text capitalization (textCapitalization) (PR #477): Forwards TextCapitalization (default none) to the underlying CupertinoTextField. Thanks to @RuslanTsitser for the contribution (#477).

Bug Fixes #

  • iOS 26 / 27 lifted lens contours, GlassTabBar platter physics, and GlassSegmentedControl parity (PR #481): Calibrated GlassTabBar lifted magnification (1.15×), press-lift/overdrag platter motion, and solid-pill foreground contrast during drag; refined lifted indicator perimeter contours and dark-mode interior clarity across GlassTabBar, GlassSegmentedControl, GlassSwitch, and GlassSlider; and aligned GlassSegmentedControl resting ios26 appearance with ios27.
  • GlassDialog and showGlassActionSheet content scrolling, keyboard avoidance, and semantics (PR #479): Scrolls tall headers while keeping actions pinned, re-centers above the keyboard, adds alertDialog / dialog route semantics and accessibility-scale label wrapping, and fixes MaterialApp text styling. Thanks to @ncosgray for the fix (#478, #479).
  • GlassMenu and GlassPopover modal barrier semantics (PR #470): Blocks background page semantics while an overlay is open without detaching the overlay from the semantics tree, and retains GlassPopover across open/close cycles. Thanks to @imariman for the fix (#470, #471).
  • GlassNavigationShell pinned chrome behind open page GlassMenu barriers (PR #476): Places pinned top and bottom bars behind open page menu barriers for both hit-testing and assistive traversal. Thanks to @imariman for the fix (#472, #476).
  • GlassPicker.showSheet selection result, semantics, and MaterialApp styling (PR #474): Returns the picked item via a Cancel / title / Done header, exposes the wheel as a single adjustable semantics node, and applies Cupertino DefaultTextStyle in both GlassPicker.showSheet and showGlassDatePicker under MaterialApp. Thanks to @imariman for the fix (#473, #474).

1.17.2 #

Features #

  • GlassChip solid surface support (GlassChip.surfaceStyle, GlassChip.color): GlassChip now accepts surfaceStyle and color, automatically inheriting GlassSurfaceStyle.solid inside solid cards/sections to render a zero-shader pill well with keyboard focus and single-line ellipsis clamping.

Bug Fixes #

  • Improved GlassQuality.standard visual parity (GlassTabBar, GlassSegmentedControl, GlassSwitch, GlassSlider, AdaptiveGlass): Upgraded standard-tier surfaces and lifted indicator pills across classic, ios26, and ios27 (Skia, Web, and standard quality) with meniscus rim shading, directional specular highlights, and inner lens depth; tuned GlassTabBar lifted pill height on standard; and fixed GlassSwitch press-hold bloom deflating across parent rebuilds.
  • GlassSegmentedControl GlassStyle.ios27 resting appearance: Calibrated the Light Mode track fill, removed resting Light Mode indicator shadow bleed across the track border, and aligned default unselected label weight and contrast with native iOS 27.
  • GlassNavigationShell pinned chrome over fullscreen dialogs and sheets (PR #466): Fixed newly pushed fullscreenDialog routes (and routes pushed over modal sheets) keeping the previous route's pinned bar items instead of showing their own. Thanks to @veloce for the fix (#466).
  • Linear interactive back-swipe parallax (GlassPageRoute, GlassPageTransitionsBuilder) (PR #468): Keeps the underlying route's delegated parallax linear with the finger during interactive swipe-back while preserving the Cupertino curve for non-interactive transitions, and aligns GlassPageTransitionsBuilder with the 500 ms Cupertino duration. Thanks to @yohom for the fix (#468).

1.17.1 #

Features #

  • GlassMenuItem checked radio semantics (GlassMenuItem.semanticsChecked) (PR #462): Reports a menu row as a checked or unchecked item of a mutually exclusive group (AXRadioButton on macOS VoiceOver) without changing visuals. Thanks to @imariman for the contribution (#462).
  • Rounded page clipping during navigation transitions (GlassPage, GlassScaffold, GlassNavigationStack, GlassPageRoute, GlassPageTransitionsBuilder, GlassPageTransitionClip) (#451): Clips transitioning pages with a continuous superellipse corner radius (adaptive to the active iPhone display bezel radius by default, or configurable via transitionCornerRadius) and card-edge shadow during push, pop, and interactive swipe-back gestures. Thanks to @Vincen-dev for suggesting the feature (#451).

Bug Fixes #

  • GlassSwitch, GlassSlider, and GlassSegmentedControl lifted lens & theme quality defaults: Kept theme-level GlassThemeVariant.quality at null so body widgets (GlassButton, GlassCard, GlassPage) default to GlassQuality.standard without hitting the 16-shape layer limit, while GlassSwitch, GlassSlider, and GlassSegmentedControl default to GlassQuality.premium in ios27/ios26 (standard in classic) even inside GlassGroupedSection / GlassContainer.
  • GlassTabBar and AnimatedGlassIndicator pill rendering: Fixed right-edge frost bleed on GlassTabBar.searchable when the search bar is collapsed and eliminated stair-stepped edge pixelation inside lifted indicator pills while preserving the concave lens pinch.
  • iOS 27 GlassQuality.standard rim and corner outlines: Added native iOS 27 rim light and light-mode rim shade to the lightweight shader and aligned the widget clip with the shader's rounded-rect SDF for smooth, continuous corner outlines.
  • GlassMenu, GlassPullDownButton, and GlassPopover liquid morph parity (#453): Restored native iOS 26/27 open and close morph physics for GlassQuality.premium — immediate trigger handoff, pill-to-droplet open contour, full J-curve overshoot on open, symmetric ~350 ms close spring, and smooth trigger-anchored contraction and trigger re-materialization on close. Thanks to @denweeLabs for reporting (#453).
  • GlassFullScreenCoverBar, GlassFullScreenCoverBarButton, and GlassEditButton default quality: Default to GlassQuality.premium in GlassStyle.ios27 and GlassStyle.ios26 so full-screen cover and edit toolbar buttons preserve native material optics.
  • GlassSegmentedControl active-lens text and icon contrast (activeSelectedColor): Phase-locked the selected segment's text and icon color to the indicator's glass-bloom phase (thickness: 0.0 → 0.15) across fixed and .scrollable modes so high-contrast inverted resting pills (e.g. a dark pill in Light Mode or a white pill in Dark Mode) smoothly transition to the ambient label color (or an explicit activeSelectedColor) while the solid pill dissolves into the clear glass lens.

1.17.0 #

Breaking & Behavior Changes (Upgrading from ≤ 1.16.x) #

  • Default style is now GlassStyle.ios27 (with or without a GlassTheme): All surfaces, tab bars, overlays, and interactive lenses now default to GlassStyle.ios27 (LiquidGlassSettings.ios27Light / ios27Dark and LiquidGlassSettings.ios27Indicator). To keep the classic v1.x look globally, wrap your app in GlassTheme(data: const GlassThemeData.classic(), child: ...) (or const GlassThemeData.ios26() for iOS 26.0).
  • AnimatedGlassIndicator (GlassTabBar & GlassSegmentedControl pill) defaults to ios27Indicator when indicatorSettings is omitted: Pass indicatorSettings: LiquidGlassSettings.classicIndicator to use the classic spherical pill on an individual widget without a global GlassThemeData.classic().
  • GlassDialog and showGlassActionSheet use the native 320 pt centered floating platter in ios27 / ios26: Renders a 320 pt platter with 34 pt continuous corners, leading-aligned header, and 48 pt capsule action buttons (GlassStyle.classic preserves the 280 pt dialog and bottom-docked action sheet).
  • GlassQuality.premium defaults on ios27 / ios26 and GlassPage quality inheritance: Transient overlays (GlassDialog, showGlassActionSheet, GlassMenu, GlassPopover, GlassToast), GlassScaffold.bodyOverlays, and hero controls (GlassSwitch, GlassSlider, GlassSegmentedControl) now default to GlassQuality.premium in ios27/ios26 (classic keeps standard). An ambient AdaptiveLiquidGlassLayer or GlassPage that omits quality: no longer forces GlassQuality.standard onto premium-default descendants.
  • GlassTabBar sizing and GlassModalSheet / GlassSheet defaults follow active GlassStyle: GlassTabBar.iconSize and magnification are now double? (27.5 pt / 1.25 in ios27/ios26 vs 24.0 pt / 1.15 in classic). GlassModalSheet and GlassSheet default to 38.0 pt top corners (was 32.0), 8.0 pt floating margins, #24000000 barrier dimming, and #F2F2F7 light-mode full-detent fill in ios27/ios26.

Features #

  • Unified 3-tier GlassStyle theming (GlassStyle.ios27, GlassStyle.ios26, GlassStyle.classic):
    • Added enum GlassStyle { classic, ios26, ios27 }, const GlassThemeData.ios27(), const GlassThemeData.ios26(), const GlassThemeData.classic(), GlassThemeVariant.indicatorSettings (GlassThemeData.indicatorSettingsFor), and LiquidGlassSettings presets (classicLight, classicDark, classicTabBar, classicIndicator, ios26Light, ios26Dark, ios26Indicator, ios27Light, ios27Dark, ios27Indicator, plus classic(context) / ios26(context) / ios27(context)).
    • Calibrated GlassTabBar, GlassSegmentedControl, AnimatedGlassIndicator, GlassSwitch (adding thumbShadow), and GlassSlider to match native UIKit platters, resting wells, lifted lens refraction/dispersion, and specular rim shading; GlassSwitch and GlassSlider lazy-mount their shader layer only while pressed or dragged.
    • Calibrated GlassMenu, GlassMenuItem, GlassMenuDivider, GlassMenuLabel, GlassPullDownButton (adding settings and capsule trigger default for non-square sizes), GlassContextMenu, GlassModalSheet / GlassModalSheetScaffold (adding quality), GlassSheet, GlassDialog, and showGlassActionSheet across ios27, ios26, and classic.
    • Added a live iOS 27 / iOS 26 style switcher to the example/ showcase app.
  • GlassButton pressed base light color (GlassButton.pressLightColor, GlassGlowColors.pressLight) (PR #457): Tints the ambient press lift and native sheen over colored surfaces (including GlassTabBar.searchable). Thanks to @Nixxx19 for the contribution (#457).
  • GlassMenu, GlassPullDownButton, and GlassMenuItem accessibility & surface overrides (PRs #455, #458, #460, #461):
    • Added GlassMenuItem.semanticsSelected (bool?) for picker selection state (#455) and GlassMenuItem.semanticLabel (String?) to override spoken row labels (#461).
    • Added GlassMenu.menuSemanticLabel and GlassPullDownButton.menuSemanticLabel (String?) and kept open menu panels in the semantics tree as a named route scope (#458).
    • Added GlassMenu.opaqueColor (Color?) and GlassMenu.border (BorderSide?) for Reduce Transparency fills and Increase Contrast borders (#460).
    • Thanks to @imariman for the contributions (#455, #458, #460, #461).
  • GlassSwitch iOS On/Off Labels and RTL mirroring (PR #459): Draws the native I and O track glyphs when MediaQuery.onOffSwitchLabelsOf(context) is enabled (onLabelColor, offLabelColor) and mirrors thumb travel, drag direction, and track labels in TextDirection.rtl. Thanks to @imariman for the contribution (#459).

Bug Fixes #

  • Theme & modal inheritance: GlassThemeData() and GlassThemeData.simple() no longer overwrite the active GlassStyle tab bar platter when unmodified; ambient AdaptiveLiquidGlassLayer scopes without explicit settings no longer mask GlassThemeData for nested overlays; and all modal/overlay presenters (GlassModalSheet.show, GlassSheet.show, GlassDialog.show, showGlassActionSheet, GlassToast.show, showGlassFullScreenCover, GlassPicker.showSheet, GlassDatePicker) preserve the caller's ambient GlassTheme and CupertinoTheme.
  • Consistent 3-tier GlassStyle & GlassQuality resolution: GlassDialog (quality now GlassQuality?, forwarding barrierColor), GlassActionSheet, GlassPopover, GlassToast, GlassToolbar, GlassBadge, GlassPicker, GlassProgressIndicator, GlassStepper, GlassChip, GlassPasswordField (quality now GlassQuality?), GlassListTile.standalone (honouring settings), and tinted GlassBarItem capsules now resolve settings and quality from the active GlassTheme and translate ios26/ios27 frost parameters onto GlassQuality.standard shaders.
  • Visual & transition fixes: Fixed GlassSwitch and GlassSlider resting thumb shadow clipping and perimeter rim hairline, GlassSegmentedControl(useOwnLayer: true) theme resolution, GlassModalSheet half-to-full frost/rim interpolation, and CupertinoDynamicColor resolution in GlassMenuItem, GlassMenuDivider, and GlassMenuLabel.

1.16.1 #

Features #

  • Custom menu glass for bar and button-group menus (GlassBarItem.menu, GlassButtonGroupItem.menu) (PR #450): Both now accept menuSettings (LiquidGlassSettings?), forwarded to the GlassMenu panel across GlassNavigationShell, GlassPinnedBarChrome, and GlassButtonGroup so menus can use a thicker, more readable material than the button they morph out of. Defaults to null (inherits the button's glass).

    Thanks to @veloce for the contribution (#450).

Bug Fixes #

  • Swipe actions with long labels no longer shrink (GlassSwipeActions, GlassSwipeAction) (PR #449): Action buttons with labels wider than buttonDiameter now stretch into capsules to fit their single-line Text label at full size instead of scaling down via FittedBox. Open actions are capped at 75% of the row width (truncating the longest labels equally with an ellipsis), and when open actions exceed fullSwipeThreshold, full-swipe triggers after pulling slightly past their open width.

    Thanks to @veloce for the fix (#449).

1.16.0 #

Features #

  • Solid surface style for inputs, pickers, and standalone disclosure groups (GlassTextField, GlassSearchBar, GlassTextArea, GlassPasswordField, GlassPicker, GlassDisclosureGroup.standalone):
    • GlassTextField (and GlassTextField.search), GlassSearchBar, GlassTextArea, GlassPasswordField, and GlassPicker now accept surfaceStyle (GlassSurfaceStyle?) and color (Color?). When surfaceStyle is null, they automatically inherit InheritedGlassSurfaceStyle from an enclosing GlassContainer.card or GlassGroupedSection (falling back to GlassSurfaceStyle.glass).
    • In GlassSurfaceStyle.solid mode, inputs and pickers render a flat, shader-free iOS tertiarySystemFill well (kGlassSolidWellLight #1E767680 in light mode, kGlassSolidWellDark #3D767680 in dark mode, via resolveGlassSolidWellColor) using a DecoratedBox with zero AdaptiveGlass, BackdropFilter, GlassGlow, or pressScale overhead, and use native CupertinoColors.label / CupertinoColors.placeholderText / CupertinoColors.secondaryLabel typography contrast (GlassSurfaceStyle.glass colors remain unchanged).
    • GlassDisclosureGroup.standalone now accepts surfaceStyle, color, and shape, delegating to GlassContainer.card (with 26pt continuous corners and 16pt divider endIndent in solid mode).

Bug Fixes #

  • Controls inside solid GlassContainer.card / GlassGroupedSection retain full visual quality (avoidsRefraction: false): GlassContainer._buildSolid now sets avoidsRefraction: false on its InheritedLiquidGlass scope so GlassSwitch, GlassSlider, and GlassSegmentedControl inside a solid card keep their full glass thumb/pill shader instead of degrading to a static vibrancy box.
  • GlassPicker grouped-mode settings warning: GlassPicker with useOwnLayer: false now resolves ambient/theme settings via GlassThemeHelpers.resolveSettings (with LiquidGlassSettings(blur: 8) as the standalone fallback) and logs a debug warning if explicit settings are passed while useOwnLayer: false.

1.15.1 #

Bug Fixes #

  • GlassModalSheet content stays hidden until morphFrom: Sheet content now scales, clips, and fades in continuously inside the expanding Liquid Glass droplet during morphFrom / morphFromRect transitions, and nested glass controls inside the sheet preserve their glass settings and backdrop alignment across the morph handoff.

  • Dark-mode GlassContextMenu platter blur: Dark-mode context menu platters now match light-mode frost density so underlying content does not bleed through.

1.15.0 #

Features #

  • Swipe actions (GlassSwipeActions, GlassSwipeAction, GlassSwipeController, GlassSwipeActionScope): iOS-style leading and trailing swipe actions with spring physics (GlassSpring.snappy()), rubber-band overscroll damping, full-swipe execution (fullSwipeThreshold), mutual exclusion across rows via GlassSwipeActionScope, and both tintedGlass and solidVibrancy styles. GlassListTile adds leadingSwipeActions, trailingSwipeActions, swipeActionStyle, and onDismissed.

  • Disclosure accordion sections (GlassDisclosureGroup): Collapsible list sections with rotating chevron (RTL-aware), spring or curve expansion, controlled/uncontrolled isExpanded state, automatic divider interleaving inside GlassGroupedSection, and GlassDisclosureGroup.standalone for standalone glass cards.

  • Edit Mode & reorderable lists (GlassEditScope, GlassEditController, GlassEditButton, GlassReorderableList): Ambient list editing modeled on SwiftUI's EditButton and ForEach. GlassReorderableList and GlassReorderableList.grouped support grabber drag or press-and-hold reorder with native lift shadow and split card edges. GlassListTile adds isEditing, canDelete/onDelete (with animated slide-in delete confirmation), canInsert/onInsert, canReorder/reorderIndex, and canSelect/isSelected/onSelectedChanged. GlassReorderableList.grouped and GlassGroupedSection take dividerIndent (and dividerEndIndent on the list) to match native row insets.

    • Behavior change: GlassListTile.leading is now a 28pt minimum width (so row text lines up with the default 56pt divider inset); a larger leading widget, e.g. a 44pt avatar, keeps its size.
  • Context menus (GlassContextMenu, GlassContextMenuAction, showGlassContextMenu): Long-press and secondary-click context menus with touch-and-hold row lift, custom preview cards (previewBuilder), glide-to-select with selection haptics, and retract-to-source dismissal. Available as GlassContextMenu, the .glassContextMenu() widget extension, showGlassContextMenu, or directly on GlassListTile (contextMenuActions, contextMenuPreviewBuilder).

  • Full-screen covers (GlassFullScreenCover, GlassFullScreenCoverBar, showGlassFullScreenCover): Edge-to-edge modal presentation with interactive swipe-down dismissal, progressive top-corner rounding, rubber-band overscroll resistance, and GlassFullScreenCoverBar with glass Done/Cancel (GlassFullScreenCoverBarButton) or close buttons. Also available via the .glassFullScreenCover() extension.

  • Date and time pickers (GlassDatePicker, GlassMultiDatePicker, showGlassDatePicker): Supports .compact (glass pills opening anchored calendar/wheel popovers), .graphical (inline paged month calendar with expandable month/year wheel), and .wheel styles across date, time, and dateAndTime modes, plus multi-date selection (GlassMultiDatePicker) and optional monthNames, weekdayNames, and dateFormatter localization overrides.

  • Declarative navigation stack (GlassNavigationStack, GlassNavigationLink, GlassNavigationPath): Value-based and builder-based declarative routing synchronized bidirectionally with native swipe-back gestures and GlassNavigationShell pinned chrome. Includes the .navigationTitle() widget extension, which automatically drives enclosing or descendant GlassAppBar / GlassAppBar.pinned titles (when title is null) via GlassNavigationTitleScope.

  • iOS 27 theme presets (GlassThemeData.ios27): Added const GlassThemeData.ios27(), GlassThemeSettings.ios27Light / ios27Dark, and GlassThemeVariant.ios27Light / ios27Dark, plus shadowElevation and shadow overrides on GlassThemeSettings and explicit horizontal leading-inset forwarding on GlassAppBar.pinned(padding:).

  • Solid card surfaces (GlassSurfaceStyle, GlassContainer.card): Added enum GlassSurfaceStyle { glass, solid } and GlassContainer.card (plus surfaceStyle on GlassGroupedSection, GlassReorderableList.grouped, GlassDatePicker, and GlassMultiDatePicker). GlassSurfaceStyle.solid bypasses the glass shader to render a flat, opaque inset-grouped card (#FFFFFF light, #1C1C1E dark, and #2C2C2E inside elevated modal sheets/covers). solid ignores settings, quality and useOwnLayer. Defaults to glass in 1.x, so nothing changes unless you opt in; the default flips to solid for list sections, date pickers and GlassContainer.card in 2.0.0 (see docs/ROADMAP.md).

  • Example demo: Added example/lib/demos/lists_pickers_and_nav_demo.dart ("Lists, Pickers & Nav") showcasing swipe actions, context menus, disclosure groups, edit/reorder, date pickers, full-screen covers, and GlassNavigationStack.

Deprecations #

  • GlassCard is deprecated in favour of GlassContainer.card: GlassCard forwards to GlassContainer.card with identical defaults and renders identically; it will be removed in 2.0.0. Migration is a rename (see docs/MIGRATION_0.x_TO_1.0.md).

Bug Fixes #

  • Automatic useOwnLayer fallback for AdaptiveGlass outside of LiquidGlassLayer: AdaptiveGlass now detects when no ancestor LiquidGlassLayer is present and provisions its own layer (effectiveUseOwnLayer = true) instead of asserting when GlassQuality.premium is requested.

1.14.2 #

Features #

  • Hold adaptive quality measurement during heavy app work (PR #445): GlassAdaptiveScope.holdMeasurement() returns a GlassMeasurementHold that suspends Phase 2 warm-up and Phase 3 runtime frame-timing measurement while open (plus GlassAdaptiveScope.settleFramesAfterHold frames after the last nested hold is released), preventing CPU/GPU-heavy app tasks such as on-device model loading from falsely demoting capable devices.

    Thanks to @almazfm for the contribution (#445).

Bug Fixes #

  • ProgressiveBlur did not repaint when an ancestor moved its retained layer (PR #444): _RenderProgressiveBlur now mixes in TransformTrackingRenderObjectMixin and marks itself for paint when its global transform changes, preventing misplaced or missing blur regions after route transitions or animated ancestor transforms over a RepaintBoundary.

    Thanks to @almazfm for the fix (#444).

  • Open GlassMenuItem.submenu cards stayed stale when GlassMenu.items changed (PR #443): Open submenu levels now track their parent row's sourceIndex and rebuild their header and child rows in didUpdateWidget, allowing live parent titles and updated submenu checkmarks to update in place while the submenu card is open.

    Thanks to @almazfm for the fix (#443).

  • GlassDialog two-action row clipped long or large-scale labels (PR #442): GlassDialog now measures two-action labels with TextPainter against half the dialog width (accounting for DefaultTextStyle, Directionality, and MediaQuery.textScalerOf) and stacks the actions vertically when either label does not fit on one line, matching native iOS alert layout.

    Thanks to @almazfm for the fix (#442).

  • GlassButton press highlight bled outside the button shape when blur: 0 (PR #441): The ambient base light overlay in GlassButton is now clipped directly to ShapeBorderClipper(shape: widget.shape) so buttons without a blur layer do not show a rectangular press highlight around rounded or circular shapes.

    Thanks to @almazfm for the fix (#441).

1.14.1 #

Bug Fixes #

  • Standalone premium glass buttons and pinned navigation bar buttons had clipped, flattened edges: Standalone useOwnLayer glass surfaces without rimShade or frost now reserve the full outer anti-aliasing border so circular buttons are not clipped at their top, bottom, left, and right poles, and shared navigation bar items now use a half-height (23pt) corner radius so single-item shared buttons are true circles.

  • GlassBarItem.menu, GlassButtonGroupItem.menu, and GlassPullDownButton menus ran off screen and could not scroll (PR #440): These menus and their GlassMenuItem.submenu cards now enable autoAdjustToScreen: true by default so long menus stop at the screen edge and scroll.

    Thanks to @veloce for the fix (#440).

  • Tab-bar icon masking alignment (PR #439): JellyClipper now matches AnimatedGlassIndicator by applying the 4px track inset before dividing into tabs, preventing unselected icon fragments from refracting beside the active icon during press and drag interactions.

    Thanks to @xuwucv for the report and fix (#439).

  • Glass moved by layout was drawn at its previous position for one frame (PR #438, fixes #418): Premium glass translated by layout (such as during a window resize or scroll) now updates its composite position in the same frame instead of lagging by one frame.

    Thanks to @erikjara for the report (#418) and the fix (#438).

Performance #

  • Layout-only moves of premium glass no longer rebuild the geometry matte: Translating an entire glass layer no longer schedules a follow-up repaint or re-rasterizes its local-space geometry matte, while shapes or groups that move within a layer now rebuild the matte in the same frame.

1.14.0 #

Features #

  • Configurable button size for GlassAppBar.pinned (PR #433, fixes #425): GlassAppBar.pinned and GlassPinnedBarChrome now accept an optional buttonSize (double?, default 44.0), sizing standalone bar buttons (the automatic back button and separate / own / none items) to buttonSize, scaling shared multi-item capsules proportionally (buttonSize + 2.0), and forwarding toolbarHeight to the pinned host so buttons are vertically centered and custom items (e.g. a 48×48 GlassButton with GlassBarItemBackground.own) are never squeezed to 44pt. buttonSize is ignored in iPhone Duo's vertical strip, which keeps its native metrics; in the upright status-row layout the chrome keeps its 44pt row and is not re-centred for a larger buttonSize.

    Behaviour note: a GlassAppBar.pinned bar's in-route buttons are no longer capped at the toolbar height, so a shared multi-item capsule drawn in-route now measures 46pt like the pinned copy, where it was previously clamped to 44pt (a 2pt jump at hand-over). Custom items inside a capsule are likewise held to the capsule's height in-route, as they already were when pinned.

    Thanks to @AlexT15-al for the feature request (#425).

  • Modal sheet animation style (PR #427): GlassModalSheet.show accepts an optional sheetAnimationStyle to customize the slide's duration and curve in each direction while keeping the morph spring.

    Thanks to @JakeThomson for the contribution (#427).

  • Status-row navigation bars on iPhone Duo upright inner display (PR #426, fixes #368): Pinned GlassAppBar and GlassNavigationShell chrome now sit beside the corner status cluster in the status bar's row when iPhone Duo is held upright, with GlassScaffold starting content below the status bar.

    Thanks to @JakeThomson for the contribution (#426, fixes #368).

Bug Fixes #

  • GlassBarItem.custom without onTap wrapped its child in an unlabelled button (PR #434, fixes #432): Omitting onTap defaulted to a no-op callback that still wrapped the slot in a button, so a custom child that was already a button exposed two nested buttons to screen readers and keyboard navigation. Omitting onTap on GlassBarItem.custom or GlassButtonGroupItem now leaves the slot passive — no outer button semantics, focus stop, tap recognizer, or strip overflow entry — and a label on a passive slot names it as a single node.

    Thanks to @veloce for the bug report (#432).

  • GlassMenu mouse hover pill (PR #430): The selectionColor highlight pill now follows a resting mouse pointer across menu rows and clears when the pointer exits, giving visible hover feedback on light glass where the white item wash was invisible.

    Thanks to @Ahmadre for the fix (#430).

  • Offstage pinned bar resize assertion (PR #429): GlassPinnedBarChrome now removes its in-route OverlayPortal strip while its route is offstage, preventing size == theater.size assertions when rotating or unfolding iPhone Duo under a full-screen route.

    Thanks to @JakeThomson for the fix (#429).

  • Locked modal sheet outside-tap dismissal (PR #428): GlassModalSheetScaffold now accepts barrierDismissible (wired from GlassModalSheet.show(isDismissible:)), keeping non-dismissible sheets open when tapping outside.

    Thanks to @JakeThomson for the fix (#428).

1.13.0 #

Features #

  • Dialogs and sheets on a half-folded iPhone Duo (PR #411): Half folded, native alerts and sheets present into one side of the fold; GlassDialog and GlassModalSheet stayed centred across it. The iOS plugin now also reports the fold, UIView.reservedRegions(kind: .division), and GlassNavigationShell publishes it with the cutouts as a hinge in MediaQuery.displayFeatures, so dialogs present into a side through DisplayFeatureSubScreen. GlassModalSheet presents into the same side as a card with its margins and a horizontal bar, and GlassModalSheet.restingWidthOf measures that side.

    Thanks to @JakeThomson for the contribution (#411, part of #368).

  • Modal sheet route settings (PR #419): GlassModalSheet.show accepts optional routeSettings, allowing callers to provide a route name and arguments for navigation observers and sheet content.

    Thanks to @leoluobuqi for the contribution (#419).

Bug Fixes #

  • The vertical bar strip jumped into the content during a presentation (PR #420, fixes #422): On iPhone Duo, presenting anything over a screen hands its chrome back to the route, which draws the strip itself. It placed the strip against the bar's own box, so a bar laid out clear of the strip, under a SafeArea say, drew its back button and items a strip's width into the content until the presentation ended. The strip is now placed across against the screen, or the sheet, that its GlassVerticalBar spans.

    Thanks to @JakeThomson for the fix (#420).

  • Menus from the vertical bar strip covered its status cluster (PR #421, fixes #423): On iPhone Duo, a GlassMenu opened from the strip was centred on its item, as a popover is, so a tall one rose over the clock and the status icons at the top of the strip. Natively a menu covers its item with their edges aligned and grows away from the nearer of the top and bottom of the screen, and stops level with the strip's first control. GlassMenu now does the same.

    Thanks to @JakeThomson for the fix (#421).

1.12.0 #

Features #

  • Opt-in scroll edge pointer absorption (PR #413): GlassScrollEdgeEffect and GlassScaffold can absorb touches in their fade zones when absorbPointer (edgeFadeAbsorbsPointers on GlassScaffold) is enabled; defaults to false.

    Thanks to @yohom for the contribution (#413).

Bug Fixes #

  • Anti-aliased premium pill and curved silhouettes (PR #415): Fixed stair-stepping artifacts on curved glass silhouettes (notably GlassTabBar's indicator pill during drags) by extending the geometry matte's coverage fade to full transparency and filtering transformed mattes bilinearly.

    Thanks to @gbahry for the fix (#415).

Performance #

  • Morph spring early settle & frame savings (PR #417): GlassMorphController now uses an optimized settling tolerance so springs complete once motion is visually imperceptible. Eliminates trailing rebuild and repaint ticks across GlassMenu, GlassPopover, and modal sheets, reducing frame draw overhead by ~30%.

    Thanks to @Ahmadre for the contribution (#417).

1.11.1 #

Bug Fixes #

  • GlassBackdropGroup dropped backerColor on members after the first (fixes #412): Surfaces with a visible backerColor now take an isolated backdrop read so their dimming pad is preserved, while members without a backer continue sharing the group's backdrop read.

  • Engine lifecycle hardening (PR #410): Fragment shaders are no longer reloaded on every rebuild. Blend groups release their group link on dispose and follow renderLink changes when reparented. Removing a glass shape from a layer repaints its matte, so no ghost of it remains. Duplicate shape registrations on detached render objects are prevented, and the native picture recorded for an asynchronous geometry cache is released as soon as it is rendered.

  • Fragment shaders are now disposed: MultiShaderBuilder disposes the shaders it creates when it unmounts, and the ones it replaces when its keys change (after the frame that last used them), instead of leaving them to the garbage collector.

1.11.0 #

Features #

  • Layered GlassMenu submenus (PR #386): GlassMenuItem.submenu opens a native iOS-style card over its parent. The parent recedes to 0.971× and dims its rows to 50%; the full-width card's bold header repeats the source row's icon and title with a downward chevron and sits on that row. Selecting the header, or tapping or gliding onto the exposed parent, collapses one level. Submenus nest, only the top card is interactive or exposed to semantics, and Reduce Motion makes transitions instant. The card's rows arrive with its material while the parent rows it covers cross-fade away, and closing reverses this; the fade drives the glass visibility channel, so the card keeps blurring its backdrop. GlassMenu.onLevelChanged reports the depth and the whole stack's extent so an owner can make room for a card that overhangs the parent, and GlassMenu.maxStackHeight constrains the stack, scrolling a card that would not otherwise fit. GlassMenuController.submenuDepth reports the current depth.

    Thanks to @F1orian for the contribution (#386).

  • stripRowTop on GlassPinnedBarChrome and GlassNavBarRegistration (fixes #398, PR #399): In iPhone Duo's vertical bar strip, the items that stay horizontal were always pinned in the row GlassAppBar draws its title in, so beside a bespoke header lower down they sat a row above it. stripRowTop puts that row where the bar's own header is.

    Thanks to @JakeThomson for the contribution (#399).

  • GlassVerticalBar.disabled keeps a subtree's bars horizontal (fixes #400, PR #401): In a list/detail split on iPhone Duo the strip belongs to the column against it, as with UISplitViewController, and the other column keeps horizontal bars. Wrap that column in GlassVerticalBar.disabled. A pinned bar inside it draws its chrome in-route rather than handing it to the shell, which would pin it against the window, in the strip.

    Thanks to @JakeThomson for the contribution (#401).

  • GlassModalSheet.restingWidthOf (fixes #402, PR #403): The width a sheet rests at, for content measured before the sheet is presented. In iPhone Duo's vertical bar strip layout a window 800pt wide or more lays every detent out as a card the display's shorter side wide, so content measured at the screen's width less the margins gained a wrapped row the sheet's height did not allow for.

    Thanks to @JakeThomson for the contribution (#403).

  • The vertical GlassTabBar shows its labels under a finger (fixes #406, PR #407): In iPhone Duo's vertical bar strip the tab bar is icons only, as natively, so its tabs had no visible names. Touching it now behaves as UIKit's does: the capsule swells, then after a short hold grows into a labelled form with each label beneath its icon, and the indicator lifts into a lens that follows the finger and selects the tab under it on release. A drag shows the labels at once. GlassTabBar.indicatorSettings now reaches the vertical bar's lens.

    Thanks to @JakeThomson for the contribution (#407).

Bug Fixes #

  • GlassTabBar.searchable in iPhone Duo's vertical bar strip (fixes #392, PR #393): With GlassSearchBarConfig.showPill false the strip still ended the capsule with a search slot; it now leaves search out, as a native TabView without its search tab does. GlassTabBar.searchable and GlassTabBar.minimizable also take passthroughOverPlatformView, which only the internal layout accepted, so a bar over a map no longer has to drive that layout directly, which kept it horizontal in the strip.

    Thanks to @JakeThomson for the fix (#393).

  • Vertical GlassTabBar asserted outside a GlassScaffold (fixes #394, PR #395): In iPhone Duo's vertical bar strip, the tab bar's capsule, search field and ✕ relied on the GlassScaffold around them for a glass layer, so at GlassQuality.premium a bar placed any other way failed the renderLink != null assertion. Each now brings its own layer, as the horizontal bar does; under a GlassScaffold nothing changes.

    Thanks to @JakeThomson for the fix (#395).

  • GlassPinnedBarChrome builder can now tell the package draws the strip (fixes #396, PR #397): On iPhone Duo, a GlassPinnedBarChrome the shell has not hoisted, such as one in a nested navigator, draws the vertical bar strip itself, but builder still got hoisted: false, so a bar drawing its own capsules from it showed the back button and actions twice. The new GlassPinnedBarChromeData.inStrip is true whenever the chrome is laid out for the strip, which the package draws whatever hoisted says.

    Thanks to @JakeThomson for the fix (#397).

  • iPhone Duo's vertical bar strip now follows the status cluster (fixes #404, PR #405): The strip's first control sat at a height measured on the 27.1 simulator, so on a device, where the cluster grows with live activities and goes with the status bar, the controls no longer lined up with it. The strip's ends now come from the regions UIKit reserves for the cluster and the camera, UIView.reservedRegions(kind: .occlusion), read by a small iOS plugin and updated as they change. GlassVerticalBar.resolve takes them as cutout displayFeatures, which is where Flutter will report them once it does on iOS (flutter/flutter#193025).

    Thanks to @JakeThomson for the fix (#405).

  • iPhone Duo's vertical bar strip in Split View (fixes #408, PR #409): The strip was only found where the top inset was zero and one side was inset, so in Split View the app fell back to horizontal bars. The left-hand app gets no inset for its strip at all, only UITraitCollection.verticalBarEdge, which the iOS plugin now reports; the shell keeps an 84pt strip on that edge and insets the content for it. Below a status bar along the top, the strip and the title row start beneath it.

    Thanks to @JakeThomson for the fix (#409).

  • Submenu card touch glow was opaque white: A layered submenu card defaulted its interaction glow to fully opaque white, so the highlight under a finger blew out the card's rows. It now uses the same theme-aware specular colour as the root menu (white at GlassDefaults.specularLightAlpha in dark mode, black at GlassDefaults.specularDarkAlpha in light mode). An explicit GlassMenu.glowColor still wins.

  • GlassPullDownButton dropped item properties when onSelected was set: Wrapping each GlassMenuItem to report the selection rebuilt it with only a few fields, so submenu, height, titleStyle, subtitleStyle, iconColor, iconSize, maxLines, enablePressScale, closeDelay, isPressed and isSelected were lost. A submenu row in a pull-down button showed no chevron and opened nothing. All properties are now forwarded.

1.10.0 #

Features #

  • GlassBarItem.spacer() multi-capsule rendering (#245, PR #390): A spacer now splits a pinned bar's run of shared items into separate capsules, as ToolbarSpacer(.fixed) does natively, where it used to assert. Across a transition each capsule follows its items, matched by id and otherwise by position, rather than one capsule morphing into another. A capsule the destination adds beside one buds out of it through a liquid bridge, as on iOS 27, and one it drops merges back in.

    Thanks to @JakeThomson for the contribution (#390).

  • External slide-to-select on GlassMenu (discussion #369, PR #384): Added glideTo(Offset), endGlide(), and cancelGlide() to GlassMenuController. Enables external gesture recognizers (such as a long-press on an outer card) to drive menu item highlighting, selection haptics, and activation without needing direct touch ownership.

    Thanks to @F1orian for the contribution (#384).

  • Dynamic sheet appearance with expandedDarkColor (PR #385): Added optional expandedDarkColor parameter to GlassModalSheet and GlassModalSheet.show so presented full-height sheets and morph droplets dynamically follow system light/dark appearance switches while open.

    Thanks to @DFelten for the contribution (#385).

  • Accessibility semantic label overrides (PR #387): Added optional semanticLabel parameters across GlassPicker, GlassMenu, GlassPopover, GlassTextField, GlassChip, GlassPasswordField, GlassSearchBar, and GlassSearchBarConfig to allow custom screen reader announcements.

    Thanks to @Ahmadre for the contribution (#387).

Bug Fixes #

  • Tinted GlassBarItem dropped the bar's buttonSettings (fixes #372, PR #389): A GlassBarItem with a tintColor built its capsule's settings from scratch, so under LiquidGlassSettings.ios27Light it lost the outline, rim light and shadow the untinted capsules beside it kept. The tint now replaces only the body colour of the bar's button settings, hoisted and in-route.

    Thanks to @JakeThomson for the fix (#389).

  • LiquidGlassSettings.ios27Dark over bright backdrops (fixes #373, PR #388): From mid-grey up, ios27Dark lifted the backdrop and drew a light rim where the native dark material darkens it and keeps a dark outline, and over a white page it stayed white where native greys to about 184. The new bodyShade term pulls a bright backdrop down by its luminance squared, outline included; ios27Dark sets it to 0.28 and raises rimShade to 1.

    Thanks to @JakeThomson for the fix (#388).

  • Screen reader, dynamic type, and Reduce Motion pass (PR #387): Exposed missing button semantics and dismiss actions on menu/popover barriers and plain triggers; prevented chip delete buttons from merging into name text; allowed GlassPicker to grow with large system fonts; and honored Reduce Motion across toasts, page controls, and searchable tabs.

    Thanks to @Ahmadre for the contribution (#387).

  • Controlled GlassSwitch state synchronization (PR #383): Fixed visual state desynchronization when widget.value is unchanged or rejected by the parent. Reconciles the position controller to authoritative widget.value after gestures and settles thickness bloom correctly.

    Thanks to @sbezhuk for the fix (#383).

  • One screen-reader node per control (issue #381): Every interactive control now surfaces as a single semantics node carrying its label, role, state, tap and focus. Previously GlassFocusRegion split its focus semantics into a second node — unlabelled on switches, icon buttons, tabs, steppers and button groups (an extra TalkBack stop), and a repeat of the visible text on segments, chips and menu rows (read twice by VoiceOver). The drag detectors on GlassSegmentedControl and GlassSwitch, and the inner detector on GlassListTile, no longer add unlabelled scroll/tap nodes either.

    • An explicit label (GlassButton.label, GlassSegment.semanticLabel, GlassMenuItem.title, …) now replaces the control's visible text instead of being announced alongside it, as GlassButton.label documents.
    • GlassMenuItem.subtitle is announced as the row's value; GlassListTile.onLongPress is reachable by screen readers.
    • GlassChip's delete button defaults to "Remove ‹label›" instead of being unnamed.
    • canRequestFocus: false is now honoured; it was silently overridden, so such controls still took keyboard focus.

    Thanks to @cosmeao for the detailed report and reproduction (#381).


For 1.9.0 and earlier history see CHANGELOG_ARCHIVE.md or the GitHub Releases page.

395
likes
160
points
168k
downloads

Documentation

API reference

Publisher

verified publisherpixel-innovations.com

Weekly Downloads

iOS 26/27-style liquid glass widgets for Flutter. Built on a custom fragment shader for real blur, liquid interactions, specular highlights, and chromatic aberration.

Repository (GitHub)
View/report issues

Topics

#liquid-glass #widget #glassmorphism #flutter #apple

License

MIT (license)

Dependencies

flutter

More

Packages that depend on liquid_glass_widgets

Packages that implement liquid_glass_widgets