liquid_glass_widgets 1.23.0
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
glassFaceoptical model, luma-bracketed tints & size-adaptive optics (LiquidGlassSettings.sizeAdaptive) (#559):- Empirically calibrated against live iOS 27.0 (
CABackdropLayer/glassBackgroundarchive on iPhone 18 Pro,h = 30–160 pt) and iOS 26.5 CoreAnimation face laws. - Adds
uFaceanduFaceExtratoliquid_glass_render.frag(and mirrorsuFaceintolightweight_glass.fragfor Web/Skia/DesktopGlassQuality.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 exact0.60 → 0.35cap across64–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.55across64–160 pt), live-calibrated iOS 27 blur-fill frost (frost: 8.0,frostOpacity: 0.50light /0.65dark on controls≤ 64 ptwith CoreAnimation directional Lighten0.90/ Darken0.75blurFillblending so dark text on light cards stays ghostly while colorful cards and bright rim refractions shine vividly, ramping smoothly to0.88on large platters≥ 160 ptwhile preserving1.0on overlay platters), and quantized0.5 ptfrost scaling on standalone large iOS 26 surfaces (keeping iOS 27 and sharedGlassBackdropGroupfrost 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 acrossGlassStyle.ios26andGlassStyle.ios27. - Adds luma-bracketed chromatic tinting (
applyGlassColorBracketedinrender.glsl), preventing saturated glass tints from clipping toward cyan/yellow over bright highlights while preservingGlassBodyMode.clearand custom/classic settings bit-for-bit.
- Empirically calibrated against live iOS 27.0 (
- Clear glass presets (
LiquidGlassSettings.ios26Clear,ios27Clear,clear(context)) (#559): AddsUIGlassEffect.Style.clearpresets 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 intoGlassScaffoldbetween body content and floating chrome, and directly available viaGlassBackdropGroup.hoisted(backdrop:, overlay:)) plus a shared Pass-2glassKeyonRenderGlassBackdropGroupBoundary. Non-overlapping glass layers with pure translation hoist Pass 1 blur/frost into one shared container (1 framebuffer copy) and shareglassKeyon Pass 2 (1 framebuffer copy), reducing an entire screen ofNglass surfaces fromN + 1full-screen copies to2with 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-indexedO(N)pass, weighting smooth union by0.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 rounder5/3 × rbox blended withgradientOvalization = 0.5above66 pt(0extra per-frame GPU cost). - Control-level
enabledonGlassSegmentedControl&GlassSegmentedControl.scrollable(#559): Addsbool enabled = trueblocking 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 leavesAppLifecycleState.resumed, adds opt-insampleOnFrame: true(throttled persistent frame callback with zero idle timers for video/carousels), and composites premultiplied alpha accurately overbackgroundColorincomputeVerdict. GlassListTilechecked 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,AXValue1 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'sSlider.semanticFormatterCallbackdoes. 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.buttonas 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.isCheckedcarries the radio state for any button.GlassToggle.buttonlabel 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 ambientDirectionality.
Changes #
- Native iOS 26 / iOS 27 default control metrics (#575):
GlassSwitchdefaults towidth: 63.0, height: 28.0(was58.0 × 26.0), matching nativeUISwitchdimensions and its calibrated lifted-lens geometry.GlassTabBar.bottom,.searchable, and.minimizabledefault tobarHeight: 62.0(was64.0) andhorizontalPadding: 21.0(was20.0),GlassTabBarExtraButtondefaults tosize: 62.0, and the selected tab icon and label tint withCupertinoTheme.of(context).primaryColorunderGlassStyle.ios26/GlassStyle.ios27(matching nativeUITabBar;GlassStyle.classicand explicitselectedIconColor/selectedLabelColoroverrides are unchanged).GlassMenu(and menu-backedGlassPullDownButton,GlassButtonGroup,GlassBarItem.menu, andGlassTabBarExtraButton.menu) defaults tomenuWidth: 250.0(was200.0), matching nativeUIMenu.GlassModalSheetdefaults tohalfSize: 0.525(was0.45), matching live iOS 26 / iOS 27 floating.mediumsheet height (~52.5% of screen height on Face ID iPhones) while keepingshowDragIndicator: true, andGlassModalSheet.showuses brightness-aware barrier scrims (0x2B000000light /0x6D000000dark) underGlassStyle.ios26/GlassStyle.ios27matching UIKit's dark-mode sheet dimming.
GlassSwitchhas no English default name (#564): WithoutsemanticLabelthe 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:MergeSemanticsaround aGlassListTile(withoutonTap) with a trailingGlassSwitchreads as one switch named by the tile's title.GlassSliderhas no English default name (#568): Withoutlabelthe 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 aUISlideror SwiftUISliderwithout one: its value and its role.labelis documented as the screen reader name it is.GlassToggle.buttonlabel 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 explicitheightkeeps one line with an ellipsis.
Bug Fixes #
GlassModalSheetexact spring-settle on detent snaps (#575): PassessnapToEnd: truetoSpringSimulationin detent snaps so overdamped springs settle to the exact detent coordinate (progress == 1.0) rather than parking slightly short within simulation tolerance.GlassScaffoldnativeGlassTabBarbottom scroll edge parity (#559): Suppresses the automatic opaque softbottomEdgeFadebehindGlassTabBarunderGlassStyle.ios26andGlassStyle.ios27(matching nativeUITabBarwhere scrolling cards pass at full colour and contrast through the floating glass bar and its rim refractions). ExplicitbottomEdgeFade: true, non-softedgeStyle(.blur/.hard), custombottomEdgeFadeExtent, non-tab bottom bars (GlassToolbar), andGlassStyle.classicremain unchanged.- Untinted
GlassButton(style: GlassButtonStyle.prominent)&GlassIconButton(style: GlassButtonStyle.prominent)(#559): In glass mode, enabled untinted prominent buttons now default toCupertinoTheme.of(context).primaryColorwith 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 (matchingGlassBarItemStyle.prominent,GlassToggle.button, and UIKit). - Disabled
GlassSliderthumb & track dimming (#559):GlassSlider(onChanged: null)now dims its resting thumb and track to 50% opacity (matching native disabledUISlider). GlassMenumid-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.GlassDisclosureGroupheader 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 SwiftUIDisclosureGrouplabel andGlassListTiledo. AtitleorsubtitleTextwith its ownmaxLinesandoverflowstill applies them.GlassDisclosureGroupheader on iOS VoiceOver and from the keyboard (#567): iOS VoiceOver reads noexpandedflag, 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 wordsCupertinoExpansionTileputs 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 (callingonExpansionChanged). 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.GlassSwitchreads as a switch on macOS (#564): The switch's semantics node was also a button, and macOS givesbuttonits 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 (AXSwitchwithAXValue1 or 0); iOS and Android read it as before.GlassSwitch44 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 aGlassListTileputs 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.GlassSliderchange callbacks for screen-reader adjustments and the end of a drag (#569): A VoiceOver or TalkBack increment or decrement calledonChangedonly, so an app that saves the value inonChangeEndlost every change made with a screen reader; it now reportsonChangeStart,onChangedandonChangeEnd, as Flutter'sSliderdoes.onChangeEndat 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 valueonChangedreported.GlassSliderarrow 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 reportsonChangeStart,onChangedandonChangeEnd, as Flutter'sSliderdoes. The step is the one a screen reader uses: one division, or a tenth of the range. UnderNavigationMode.directionalonly Left and Right adjust it, and Up and Down still move focus.GlassToggle.buttonandGlassButton(isToggled:)read their on/off state on macOS (#571): The toggle's semantics node was also a button, and macOS givesbuttonits 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.button44 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
PressAmbientLifthas left the tree (for example when the press swaps the pill out or pops the route) no longer throwsAnimationController.reverse() called after AnimationController.dispose()(in release builds,Null check operator used on a null valuefromAnimationController.stop). The pressListenerstays in the pointer-down hit test path, so its callbacks now checkmountedbefore driving the lift, asGlassTextFielddoes since #549. GlassModalSheet,GlassSheet, andGlassSegmentedControlpointer callbacks after dispose: Guards rawListenercallbacks withmountedchecks so pointer move, up, or cancel events arriving after unmount never drive a disposedAnimationControlleror callsetState()after dispose.GlassLargeTitleandGlassAppBartitles 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'sheaderflag reached macOS but not iOS, which gives the header trait only to a node with a heading level. Both are now level-1 headings (headerwithheadingLevel: 1), on everyGlassAppBartitle. With alargeTitleController, 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): ALightweightLiquidGlasssurface built before the lightweight shader program had loaded painted the shader-less fallback, a flat wash of itsglassColor, and kept it until something unrelated rebuilt it. On native platforms, in an app that startsLiquidGlassWidgets.initialize()without awaiting it, or never calls it, every Standard-quality surface on the first screen lost its blur and rim, and a selectedGlassToggle.buttonor 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()andGlassEffect.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 secondGlassEffect(such as a secondGlassSwitchthumb) returned at once and never took the shader. - iOS 27.2 light-mode rim outline contrast on white and near-white backdrops (#562): Raises
rimShadeEndsonLiquidGlassSettings.ios27LightandGlassThemeSettings.ios27Lightfrom0.2to0.3, changes the surface hairline angular falloff fromcos^3.5tocos²inliquid_glass_render.frag(preservingcos^3.5forisClearIndicator) andlightweight_glass.frag, and sharpens the Standard-path light-mode edge anti-aliasing, half-point hairline (shadeWeight: 0.314), and additivenativeRimLightso light glass controls keep crisp separation over white and near-white backdrops.
Documentation #
- Added
docs/IOS26_27_OPTICS_SPEC.mdand refresheddocs/ROADMAP.md(#575): Documents the CoreAnimation-calibrated optical architecture, GPU/shader invariants, and planned post-1.23.0parity specifications.
Thanks to @Hamdym12 (#562), @imariman (#563–#572, #574), and @fryette (#573) for their contributions.
1.22.0 #
Features #
GlassBadgesolid surface style (surfaceStyle) (#554): AddssurfaceStyletoGlassBadgeandGlassBadge.dot. WhenGlassSurfaceStyle.solidis set explicitly or inherited from an ancestorInheritedGlassSurfaceStyle(such as a solid card, grouped section, or solidGlassModalSheet), badges render as crisp flat iOS notification pills or status dots with zeroAdaptiveLiquidGlassLayer/ shader overhead, resolvingCupertinoDynamicColorvalues againstGlassTheme.brightnessOfandMediaQuery.maybeHighContrastOf.GlassToggle.button(Toggle(.button)) &GlassButton.isToggled(#545): AddsGlassToggle.button, the native iOS 26/27 Liquid Glass capsule toggle button mirroring SwiftUI'sToggle(...).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-nodetoggledsemantics, and automaticGlassSurfaceStyle.solidinheritance viaInheritedGlassSurfaceStyle). Also addsbool? isToggledtoGlassButtonandGlassButton.customforwarding toggle semantics toGlassFocusRegion.- iOS 26/27 confirmation dialog (
showGlassConfirmationDialog,GlassConfirmationDialogAction) (#542): Mirrors SwiftUI's.confirmationDialog()and UIKit'sUIAlertController(preferredStyle: .actionSheet)calibrated against iOS 27.2. When anchored to a source control viamorphFrom(GlassMorphTrigger) ormorphFromRect, liquid-morphs into a240 ptfloating 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 the320 ptcentered platter with stacked48 ptcapsule actions and a Cancel button by default. Supports destructive, prominent primary (Return-key activation), customtintColor/foregroundColor, disabled (onPressed: null), anddismissOnPressactions with live theme and brightness updates. GlassModalSheetsurface style (surfaceStyle) (#544): AddssurfaceStyletoGlassModalSheet,GlassModalSheetScaffold, andGlassModalSheet.show.GlassSurfaceStyle.solidmakes the sheet opaque at every detent and at every moment: while it is dragged, slides in or out, or resizes as aGlassSheetDetent.fittedsheet. WithmorphFrom, the droplet starts as glass and the opaque fill fades in as it grows, as for a large sheet. It is filled withexpandedColor/expandedDarkColor(default#F2F2F7light, white inGlassStyle.classic,#1C1C1Edark), its glass effects are set to zero under the fill, so the premium renderer skips its glass pass, and it publishesGlassSurfaceStyle.solidto 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.GlassModalSheetresistance below the smallest detent (minDetentResistance) (#553): AddsminDetentResistancetoGlassModalSheet,GlassModalSheetScaffold, andGlassModalSheet.show.null(the default) keeps today's behaviour, whereresistanceapplies on both sides.0stops a downward drag at the smallest detent, so aGlassSheetMode.persistentsheet 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 wayUITabBar's_UILiquidLensViewdoes, 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 andGlassQuality.premium; elsewhere the lens keeps its single-pass refraction. Every value is tunable throughIndicatorLensOptics, andIndicatorLensOptics.disabledopts out.
Changes #
GlassTabBar.magnificationdefaults to1.16(#541) (was1.15), the scale UIKit gives every selected item while the lens is lifted.
Bug Fixes #
- Disabled
GlassButtonImpeller Metal glass preservation (#545): InGlassSurfaceStyle.glassmode, disabled buttons now dim only their interior content (Opacity(opacity: 0.5)) insideAdaptiveGlassrather than wrapping the glass shader in an ancestorOpacitysaveLayer, preventing disabled glass buttons and toggles from losing their refractive pill surface on Impeller Metal. GlassTextFieldpress 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 throwssetState() called after dispose(). The pressListenerstays in the pointer-down hit test path, so its callbacks now checkmountedbefore updating the press-scale state.GlassModalSheetpersistent sheet dipping below its smallest detent on a fast fling (#550): InGlassSheetMode.persistentthe 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.dismissiblesheets are unchanged.GlassSwitchunder Reduce Motion (#551): WithGlassAccessibilityData.reduceMotion(system Reduce Motion, or aGlassAccessibilityScopeoverride) the switch no longer plays its 380 ms thumb travel, press bloom, or overshoot settle. Taps, drags, cancelled drags, and externalvaluechanges all land on the next frame; value reporting, the disabled state, and semantics are unchanged. Previously the flag only suppressed haptics.GlassTabBarbadge halo cut at the track edge (#552): AGlassBadgeon 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 inverseJellyClippermask now extends past the track (it only has to cut the lens out), and the unselected icon layer no longer uses asaveLayerwhile 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.fragandliquid_glass_render.fragto eliminate bottom-rim glyph ghosting, curved-corner unselected-glyph bleed, dark-mode opaque grey halos, and single-passisBarIndicatorlight/dark probe flickering over bright artwork; eliminated a redundant offscreensaveLayerduring active 120 Hz drags (Clip.nonewhile warping), resting1/255overdraw, and idle inner-shadow mounting while cutting shader SDF evaluations and texture fetches.
Deprecations #
showGlassActionSheet(GlassActionSheetAction,GlassActionSheetStyle) is deprecated in favour ofshowGlassConfirmationDialog(#542): Legacy action sheet APIs remain functional in1.xand will be removed in2.0.0.GlassChip(#545): Marked@Deprecatedin favour ofGlassToggle.button(for selectable/filter toggles) and capsule-shapedGlassButton.custom(for pill actions). Will be removed in2.0.0.GlassSheet(#545): Marked@Deprecatedin favour ofGlassModalSheet(GlassModalSheet.showwithGlassSheetMode.dismissibleorGlassSheetMode.persistent). ExtractedGlassInteractionSilenceinto its own non-deprecated shared widget (lib/widgets/shared/glass_interaction_silence.dart, exported fromliquid_glass_widgets.dartand re-exported fromglass_sheet.dartwith zero breaking changes). Will be removed in2.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 #
GlassAppBariOS 27 scroll-under blur surface (GlassAppBarSurfaceStyle) (#534, #539): AddssurfaceStyle(automatic,transparent,fullBlur),automaticSurfaceVisibility,surfaceAppearanceExtent,backdropBlurSigma,backdropTint,bottomBorder, andnotificationPredicatetoGlassAppBarandGlassAppBar.pinned. UnderGlassStyle.ios27,automatic(default) stays transparent at scroll offset0and fades in a full-width blurred bar with a 1 px hairline bottom border as content scrolls behind it — coordinating automatically withGlassScaffoldand respecting Reduce Transparency (GlassStyle.ios26andGlassStyle.classicremain transparent). PasssurfaceStyle: GlassAppBarSurfaceStyle.transparent(or useconst GlassThemeData.ios26()) to keep the iOS 26 borderless bar onios27.GlassDialogActionprominent primary styling,tintColor,foregroundColor, and Return-key activation (#536, #538): OnGlassStyle.ios27andGlassStyle.ios26, enabled non-destructiveisPrimary: trueactions now fill withtintColor ?? CupertinoTheme.of(context).primaryColor(bridging MaterialcolorScheme.primaryautomatically), auto-contrasted white/black text, native press/hover feedback, and hardwareReturn/Enteractivation when a single primary action is present. Adds optionaltintColorandforegroundColor(supportingCupertinoDynamicColor) across allGlassStylepresets, reverting disabled actions to the neutral capsule and keeping destructive primary actions neutral with Semibold red text.GlassBarItem.textandGlassBarItemStyle.prominent(#535): Adds text-label pinned bar items (GlassBarItem.text) andGlassBarItemStyle.prominentacross allGlassBarItemfactories, flooding enabled prominent capsules withtintColor ?? CupertinoTheme.of(context).primaryColorand 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): Passdetents: const {GlassSheetDetent.fitted}toGlassModalSheet,GlassModalSheetScaffold, orGlassModalSheet.showfor a dismissible sheet whose height dynamically follows its content (capped atfullSize), preserving frame stability through drags, springs, slides, morphs, and iPhone Duo vertical bar alignment. ReportsGlassSheetState.halfinternally so existingonStateChangedhandlers and sheets are unchanged.
Bug Fixes #
showGlassDatePickerdesktop/iPad width (maxWidth), header accent, and narrow-viewport layout (#537): Caps modal picker width to400px by default on wide viewports (maxWidth: nullto opt out), tints headerCancel/Doneactions withtintColor/primaryColor, and fixes narrow-viewportRenderFlexoverflows inGlassDatePicker.compactand.graphical.- Live theme & brightness updates in open modals (#529, #532): Captures only subtree-local
GlassTheme/CupertinoThemeoverrides below the targetNavigator/Overlay, keeps open modal brightness synced live withGlassTheme.brightnessOf, and makesGlassThemeanInheritedThemeso Flutter's ownshowDialogpreserves overrides. GlassPopoverreopen after close (#533): ResetsGlassMorphControllerwhen an intrinsic-heightGlassPopoverfinishes 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
GlassTabBarandGlassSegmentedControl(indicatorJelly,IndicatorJellyPhysics) (#523, #530): The indicator now moves like the nativeUITabBarlens 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_UILiquidLensViewstretches 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 throughIndicatorJellyPhysics, andIndicatorJellyPhysics.disabledkeeps the classic squash. GlassThemeData.minimal(...)convenience constructor (#517 follow-up): Addsconst GlassThemeData.minimal({style, interaction, brightness})pairingGlassThemeVariant.minimalLightandGlassThemeVariant.minimalDarkfor shader-freeGlassQuality.minimaltheming across light and dark modes (matching.ios27(),.ios26(), and.classic()).
Bug Fixes #
GlassModalSheetunder aMediaQuerythat isn't the window's size (#525, #526): The sheet now measures its detents, progress, snap targets and expand-first scroll gate against theMediaQueryheight it rests by, and converts drags into its own layout pixels. Where the two differed — one side of a half-folded display presented byshow(), 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 pixelhalfSizecouldn't either, and drags rubber-banded or fell behind the finger.GlassMenu& morph overlays settling after slow frames (#522): AdvanceGlassMorphController.phaseElapsedSecondsto its settled state whenAnimationControllerstops on a slow frame (such as cold shader compilation withGlassWarmUpMode.never), preventingGlassMenufrom 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.standardmorph overlays on Impeller: GateLiquidGlassBlendGroupcreation inGlassModalSheet,GlassMenu, andGlassPopovermorph overlays strictly onGlassQuality.premium, preventing missing-InheritedGeometryRenderLinkassertions when morphing withGlassQuality.standardon Impeller.GlassModalSheetmorphed close-origin after detent change (#507 follow-up): When amorphFromsheet opened athalfis dragged tofullorpeekand dismissed at rest (barrier tap, close button, orNavigator.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 initialrestingState.
Performance #
- Scrolling & bar chrome (
GlassScaffold,GlassTabBar,GlassAppBar,GlassToolbar,GlassScrollEdgeEffect): Shares backdrop reads across top and bottom bar chrome and progressive blur strips, removes idlesaveLayerclipping from restingGlassTabBarindicators, 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-itemOpacitylayers during menu morphs, and unmountsGlassContextMenu'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
useOwnLayersurfaces, tightens shadow clip bounds, cropsGlassContentAwareScopeluminance 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 narrowsMediaQuerydependencies 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 keepsGlassFrostBudgetin sync with blended glass groups.
Documentation #
GlassModalSheetsolid content opt-in (1.x) (#514): Documented wrapping dense controls, chips, and inputs insideGlassModalSheetinInheritedGlassSurfaceStyle(surfaceStyle: GlassSurfaceStyle.solid, child: ...)indocs/GLASS_MODAL_SHEETS_GUIDE.mdandskills/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.minimalLightandGlassThemeVariant.minimalDark(#517): Adds brightness-matched minimal-quality theme variants using iOS 27's neutral tints (#F8F8F8at 53% in light mode, white at 12% in dark mode) while leavingGlassThemeVariant.minimalunchanged.GlassDialogandGlassDialog.showoverrides (shape,actionShape,actionTextStyle) (#512, #518): Adds optional shape and action typography overrides (allnullby default to keep nativeios26/ios27andclassicdefaults) while preserving role colors and side-by-side vs. stacked label measurement.GlassPopoverControllerandGlassPopover.controller(#511, #518): Adds programmaticopen(),close(),toggle(), andisOpencontrol forGlassPopover(mirroringGlassMenuController), with idempotent transitions and mid-close blur continuity.GlassSearchBar.cancelButtonAlwaysVisible(#510, #518): Keeps the cancel button visible without focus whenshowsCancelButton: true(for modal search flows), applies post-mount flag changes dynamically, and forwardsenabledto the cancel button.GlassChip.enabled(#509, #518): Adds optionalbool? enabledacross bothglassandsolidstyles —nullpreserves handler-derived defaults,truewithout handlers draws an inert full-strength informational pill read as static text, andfalsedisables bothonTapandonDeletedat 50% opacity.- Text input & selection controls (
autofillHints,autocorrect,enableSuggestions,selectionControls) (#505): Forwards all four parameters toCupertinoTextFieldacrossGlassTextField,GlassPasswordField,GlassTextArea, andGlassSearchBar(GlassPasswordFielddefaultsautocorrectandenableSuggestionstofalse). GlassSwipeActionsenabled&backgroundColor(GlassListTile.swipeBackgroundColor) (#505): Addsenabled(defaulttrue) andbackgroundColor(resolvingCupertinoDynamicColor; passColor(0x00000000)to suppress the backing highlight).GlassTabBarExtraButton.selectedandGlassButton.isSelected(#505): Allows destination extra buttons inGlassTabBar.bottomandGlassTabBar.searchableto announce selection, adoptselectedIconColor, and suppress the main tab pill's indicator when active.
Bug Fixes #
GlassModalSheetpost-handoff hit-testing withmorphFrom(#507): Clears the morph blob clipper once the open morph hands off so taps and drags above the initial detent (e.g. after dragginghalf→full) hit the sheet instead of the modal barrier.GlassSheet.showtop safe-area bound (#508): Bounds tall content-sized sheets below the top status bar / Dynamic Island so their content scrolls cleanly regardless ofuseSafeArea(which continues to govern the bottom inset).GlassMenuon premium tab bars (#504, #506): Excludes fully dematerialized grouped triggers from the sharedLiquidGlassBlendGroupgeometry matte while the menu is open, removing the lingering circular glass rim on Impeller.GlassSwipeActionsdrag arena & child state (#505): Stops claiming horizontal drags when disabled, empty, or dragging toward an empty side so ancestor horizontal scrollables (PageView, horizontalListView) swipe freely without remountingchild.GlassTabBarkeyboardTabfocus & RTL order (#505): Excludes the magnified indicator overlay from keyboard focus soTabvisits each tab once in reading order (right-to-left in RTL).GlassNavigationShell&GlassAppBar.pinnedinIndexedStack/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 #
GlassButtonandGlassIconButtonsolid surface & glass tint support (surfaceStyle,color,tintColor,GlassIconButton.iconColor,GlassIconButton.style) (PR #495): Both buttons (includingGlassButton.custom) now acceptsurfaceStyle,color, andtintColor(resolvingCupertinoDynamicColor), andGlassIconButtonaddsiconColor,style, and continuous superellipseroundedSquarecorners. InGlassSurfaceStyle.solidmode (explicit or auto-inherited inside a solidGlassContainer.card/GlassGroupedSection), buttons render shader-freetertiarySystemFill(filled),primaryColor(prominent), or borderless (transparent) surfaces while preserving press stretch, keyboard focus, contrast-aware foregrounds/press highlights, andGlassMaterializetransitions. Inglassmode,tintColortintsfilledandprominentglass bodies while keeping activeGlassStylerefraction, frost, and rim light.GlassPullDownButtonintrinsic capsule width, recursive submenu selection, andGlassMenupassthroughs (PR #494):GlassPullDownButton.buttonWidthis nowdouble?(nullby default, resolving to44.0for icon-only buttons and intrinsic capsule width for labeled buttons without clipping).onSelectednow recurses into nestedGlassMenuItem.submenuitems, andGlassPullDownButtonforwardsmenuPadding(defaulting toEdgeInsets.symmetric(horizontal: 12)so clamped menus keep a safe screen-edge margin),menuBorderRadius,morphSpeed,controller, andonClosetoGlassMenu.GlassPopovermorph speed & platform-view backdrop support (morphSpeed,platformViewBackdrop) (PR #494):GlassPopovernow acceptsmorphSpeed(MorphSpeed.normaldefault) andplatformViewBackdrop(falsedefault), and renders its overlay throughAdaptiveLiquidGlassLayer.- iOS 27
GlassMorphController&LiquidMorphStatemorph channels (PR #494): ExposestriggerPushDx/triggerPushDy,triggerImpactScale,triggerWidthProgress,platterScale,platterOpacity,contentOpacity,contentBlurSigma, andisPlatterActiveonLiquidMorphState, plusGlassMorphController.speedsetter,speedMultiplier,phaseElapsedSeconds,phaseStartTriggerWidth,openStartProgress,closeStartProgress,recoilHalfTravelPx,verticalOnlyRecoil, andGlassMorphController.computeCornerRadiusfor custom morphing widgets.
Bug Fixes #
GlassPageRouteandGlassPageTransitionsBuilderrounded 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 is0. 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 —GlassMenuinflates as a near-circular bubble that relaxes into its resting superellipse while rows resolve from soft blur to crisp text;GlassMenuandGlassPopoverretract intotrigger.centeras 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 mscatch recoil (GlassContextMenuupgraded to matching iOS 27 spring physics with Reduce Motion support); and expandedsubmenustacks collapse coherently with the root platter. - Impeller overlay backdrop & blend-group compositing (
GlassMenu,GlassPopover,GlassModalSheet,GlassContextMenu) (PR #494): Eliminated ancestor fractionalOpacity(saveLayer) wrappers overAdaptiveLiquidGlassLayeranduseOwnLayer: trueplatters, removed duplicate nestedLiquidGlassBlendGrouppasses on premium Impeller layers, and kept underlying glass triggers suppressed until platter handoff soBackdropFilternever double-tints or blurs the resting button during close.
1.17.5 #
Bug Fixes #
GlassDialog,showGlassActionSheet, andGlassQuality.standard/minimalmaterialize transitions (PR #491, #492): Eliminates the fade-in backdrop blur pop by dissolving alert platters andstandard/minimalglass without an ancestorOpacityLayer, preserves child focus/state across transitions, and calibratesGlassQuality.standardalert legibility onios26/ios27.GlassTabBar.searchableright-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.searchableinput retention and keyboard-lifted hit targets (PR #489): Retains theCupertinoTextFieldinput 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 #
GlassSwitchdisabled state (GlassSwitch.onChangedis nowValueChanged<bool>?) (#485, #486): PassingonChanged: nulldisables the switch — rendering it at 50% group opacity (matchingUISwitchandCupertinoSwitch), ignoring touch, drag, and keyboard input without lifting into a glass lens, reporting disabled state to assistive technology, and still sliding the thumb on programmaticvalueupdates. Direct callers should updateswitchWidget.onChanged(v)toswitchWidget.onChanged?.call(v).
Bug Fixes #
LiquidVerticalRoundedRectanglecorner radii inGlassQuality.standard(PR #487): Preserves independent top and bottom corner radii in the Standard glass renderer (LightweightLiquidGlass) instead of applying the largereffectiveRadiusto 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): Refactoredvoid main()across all five fragment shaders (progressive_blur.frag,lightweight_glass.frag,interactive_indicator.frag,liquid_glass_render.frag, andliquid_glass_geometry_blended.frag) to eliminate early/multiplereturn;statements alongsidesampler2Dtexture sampling — silencing all fourimpellercwarnings on Flutter3.50.0(flutter build web --wasm, Windows, and mobile) and preventingd3dcompiler_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-exitmain()statically, run Flutter'simpellercmulti-target runtime stage check (failing on any[WARNING]) alongsideglslangValidator, and guard against regressions influtter testacross all platforms.
1.17.3 #
Features #
- Disabled dialog actions (
GlassDialogAction.onPressedis nowVoidCallback?) (PR #480): Passingnullkeeps an action in place while ignoring input and reporting disabled state to assistive technology (tertiaryLabelonios27/ios26; dimmedGlassButtononclassic). Direct callers should updateaction.onPressed()toaction.onPressed?.call(). Thanks to @ncosgray for the contribution (#478, #480). GlassTextFieldandGlassTextAreatext capitalization (textCapitalization) (PR #477): ForwardsTextCapitalization(defaultnone) to the underlyingCupertinoTextField. Thanks to @RuslanTsitser for the contribution (#477).
Bug Fixes #
- iOS 26 / 27 lifted lens contours,
GlassTabBarplatter physics, andGlassSegmentedControlparity (PR #481): CalibratedGlassTabBarlifted 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 acrossGlassTabBar,GlassSegmentedControl,GlassSwitch, andGlassSlider; and alignedGlassSegmentedControlrestingios26appearance withios27. GlassDialogandshowGlassActionSheetcontent scrolling, keyboard avoidance, and semantics (PR #479): Scrolls tall headers while keeping actions pinned, re-centers above the keyboard, addsalertDialog/dialogroute semantics and accessibility-scale label wrapping, and fixesMaterialApptext styling. Thanks to @ncosgray for the fix (#478, #479).GlassMenuandGlassPopovermodal barrier semantics (PR #470): Blocks background page semantics while an overlay is open without detaching the overlay from the semantics tree, and retainsGlassPopoveracross open/close cycles. Thanks to @imariman for the fix (#470, #471).GlassNavigationShellpinned chrome behind open pageGlassMenubarriers (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.showSheetselection result, semantics, andMaterialAppstyling (PR #474): Returns the picked item via a Cancel / title / Done header, exposes the wheel as a single adjustable semantics node, and applies CupertinoDefaultTextStylein bothGlassPicker.showSheetandshowGlassDatePickerunderMaterialApp. Thanks to @imariman for the fix (#473, #474).
1.17.2 #
Features #
GlassChipsolid surface support (GlassChip.surfaceStyle,GlassChip.color):GlassChipnow acceptssurfaceStyleandcolor, automatically inheritingGlassSurfaceStyle.solidinside solid cards/sections to render a zero-shader pill well with keyboard focus and single-line ellipsis clamping.
Bug Fixes #
- Improved
GlassQuality.standardvisual parity (GlassTabBar,GlassSegmentedControl,GlassSwitch,GlassSlider,AdaptiveGlass): Upgraded standard-tier surfaces and lifted indicator pills acrossclassic,ios26, andios27(Skia, Web, and standard quality) with meniscus rim shading, directional specular highlights, and inner lens depth; tunedGlassTabBarlifted pill height onstandard; and fixedGlassSwitchpress-hold bloom deflating across parent rebuilds. GlassSegmentedControlGlassStyle.ios27resting 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.GlassNavigationShellpinned chrome over fullscreen dialogs and sheets (PR #466): Fixed newly pushedfullscreenDialogroutes (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 alignsGlassPageTransitionsBuilderwith the500 msCupertino duration. Thanks to @yohom for the fix (#468).
1.17.1 #
Features #
GlassMenuItemchecked radio semantics (GlassMenuItem.semanticsChecked) (PR #462): Reports a menu row as a checked or unchecked item of a mutually exclusive group (AXRadioButtonon 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 viatransitionCornerRadius) 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, andGlassSegmentedControllifted lens & theme quality defaults: Kept theme-levelGlassThemeVariant.qualityatnullso body widgets (GlassButton,GlassCard,GlassPage) default toGlassQuality.standardwithout hitting the 16-shape layer limit, whileGlassSwitch,GlassSlider, andGlassSegmentedControldefault toGlassQuality.premiuminios27/ios26(standardinclassic) even insideGlassGroupedSection/GlassContainer.GlassTabBarandAnimatedGlassIndicatorpill rendering: Fixed right-edge frost bleed onGlassTabBar.searchablewhen the search bar is collapsed and eliminated stair-stepped edge pixelation inside lifted indicator pills while preserving the concave lens pinch.- iOS 27
GlassQuality.standardrim 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, andGlassPopoverliquid morph parity (#453): Restored native iOS 26/27 open and close morph physics forGlassQuality.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, andGlassEditButtondefault quality: Default toGlassQuality.premiuminGlassStyle.ios27andGlassStyle.ios26so full-screen cover and edit toolbar buttons preserve native material optics.GlassSegmentedControlactive-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.scrollablemodes 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 explicitactiveSelectedColor) 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 aGlassTheme): All surfaces, tab bars, overlays, and interactive lenses now default toGlassStyle.ios27(LiquidGlassSettings.ios27Light/ios27DarkandLiquidGlassSettings.ios27Indicator). To keep the classicv1.xlook globally, wrap your app inGlassTheme(data: const GlassThemeData.classic(), child: ...)(orconst GlassThemeData.ios26()for iOS 26.0). AnimatedGlassIndicator(GlassTabBar&GlassSegmentedControlpill) defaults toios27IndicatorwhenindicatorSettingsis omitted: PassindicatorSettings: LiquidGlassSettings.classicIndicatorto use the classic spherical pill on an individual widget without a globalGlassThemeData.classic().GlassDialogandshowGlassActionSheetuse the native 320 pt centered floating platter inios27/ios26: Renders a 320 pt platter with 34 pt continuous corners, leading-aligned header, and 48 pt capsule action buttons (GlassStyle.classicpreserves the 280 pt dialog and bottom-docked action sheet).GlassQuality.premiumdefaults onios27/ios26andGlassPagequality inheritance: Transient overlays (GlassDialog,showGlassActionSheet,GlassMenu,GlassPopover,GlassToast),GlassScaffold.bodyOverlays, and hero controls (GlassSwitch,GlassSlider,GlassSegmentedControl) now default toGlassQuality.premiuminios27/ios26(classickeepsstandard). An ambientAdaptiveLiquidGlassLayerorGlassPagethat omitsquality:no longer forcesGlassQuality.standardonto premium-default descendants.GlassTabBarsizing andGlassModalSheet/GlassSheetdefaults follow activeGlassStyle:GlassTabBar.iconSizeandmagnificationare nowdouble?(27.5pt /1.25inios27/ios26vs24.0pt /1.15inclassic).GlassModalSheetandGlassSheetdefault to38.0pt top corners (was32.0),8.0pt floating margins,#24000000barrier dimming, and#F2F2F7light-mode full-detent fill inios27/ios26.
Features #
- Unified 3-tier
GlassStyletheming (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), andLiquidGlassSettingspresets (classicLight,classicDark,classicTabBar,classicIndicator,ios26Light,ios26Dark,ios26Indicator,ios27Light,ios27Dark,ios27Indicator, plusclassic(context)/ios26(context)/ios27(context)). - Calibrated
GlassTabBar,GlassSegmentedControl,AnimatedGlassIndicator,GlassSwitch(addingthumbShadow), andGlassSliderto match native UIKit platters, resting wells, lifted lens refraction/dispersion, and specular rim shading;GlassSwitchandGlassSliderlazy-mount their shader layer only while pressed or dragged. - Calibrated
GlassMenu,GlassMenuItem,GlassMenuDivider,GlassMenuLabel,GlassPullDownButton(addingsettingsand capsule trigger default for non-square sizes),GlassContextMenu,GlassModalSheet/GlassModalSheetScaffold(addingquality),GlassSheet,GlassDialog, andshowGlassActionSheetacrossios27,ios26, andclassic. - Added a live
iOS 27/iOS 26style switcher to theexample/showcase app.
- Added
GlassButtonpressed base light color (GlassButton.pressLightColor,GlassGlowColors.pressLight) (PR #457): Tints the ambient press lift and native sheen over colored surfaces (includingGlassTabBar.searchable). Thanks to @Nixxx19 for the contribution (#457).GlassMenu,GlassPullDownButton, andGlassMenuItemaccessibility & surface overrides (PRs #455, #458, #460, #461):- Added
GlassMenuItem.semanticsSelected(bool?) for picker selection state (#455) andGlassMenuItem.semanticLabel(String?) to override spoken row labels (#461). - Added
GlassMenu.menuSemanticLabelandGlassPullDownButton.menuSemanticLabel(String?) and kept open menu panels in the semantics tree as a named route scope (#458). - Added
GlassMenu.opaqueColor(Color?) andGlassMenu.border(BorderSide?) for Reduce Transparency fills and Increase Contrast borders (#460). - Thanks to @imariman for the contributions (#455, #458, #460, #461).
- Added
GlassSwitchiOS On/Off Labels and RTL mirroring (PR #459): Draws the nativeIandOtrack glyphs whenMediaQuery.onOffSwitchLabelsOf(context)is enabled (onLabelColor,offLabelColor) and mirrors thumb travel, drag direction, and track labels inTextDirection.rtl. Thanks to @imariman for the contribution (#459).
Bug Fixes #
- Theme & modal inheritance:
GlassThemeData()andGlassThemeData.simple()no longer overwrite the activeGlassStyletab bar platter when unmodified; ambientAdaptiveLiquidGlassLayerscopes without explicitsettingsno longer maskGlassThemeDatafor nested overlays; and all modal/overlay presenters (GlassModalSheet.show,GlassSheet.show,GlassDialog.show,showGlassActionSheet,GlassToast.show,showGlassFullScreenCover,GlassPicker.showSheet,GlassDatePicker) preserve the caller's ambientGlassThemeandCupertinoTheme. - Consistent 3-tier
GlassStyle&GlassQualityresolution:GlassDialog(qualitynowGlassQuality?, forwardingbarrierColor),GlassActionSheet,GlassPopover,GlassToast,GlassToolbar,GlassBadge,GlassPicker,GlassProgressIndicator,GlassStepper,GlassChip,GlassPasswordField(qualitynowGlassQuality?),GlassListTile.standalone(honouringsettings), and tintedGlassBarItemcapsules now resolve settings and quality from the activeGlassThemeand translateios26/ios27frost parameters ontoGlassQuality.standardshaders. - Visual & transition fixes: Fixed
GlassSwitchandGlassSliderresting thumb shadow clipping and perimeter rim hairline,GlassSegmentedControl(useOwnLayer: true)theme resolution,GlassModalSheethalf-to-full frost/rim interpolation, andCupertinoDynamicColorresolution inGlassMenuItem,GlassMenuDivider, andGlassMenuLabel.
1.16.1 #
Features #
-
Custom menu glass for bar and button-group menus (
GlassBarItem.menu,GlassButtonGroupItem.menu) (PR #450): Both now acceptmenuSettings(LiquidGlassSettings?), forwarded to theGlassMenupanel acrossGlassNavigationShell,GlassPinnedBarChrome, andGlassButtonGroupso menus can use a thicker, more readable material than the button they morph out of. Defaults tonull(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 thanbuttonDiameternow stretch into capsules to fit their single-lineTextlabel at full size instead of scaling down viaFittedBox. Open actions are capped at 75% of the row width (truncating the longest labels equally with an ellipsis), and when open actions exceedfullSwipeThreshold, 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(andGlassTextField.search),GlassSearchBar,GlassTextArea,GlassPasswordField, andGlassPickernow acceptsurfaceStyle(GlassSurfaceStyle?) andcolor(Color?). WhensurfaceStyleisnull, they automatically inheritInheritedGlassSurfaceStylefrom an enclosingGlassContainer.cardorGlassGroupedSection(falling back toGlassSurfaceStyle.glass).- In
GlassSurfaceStyle.solidmode, inputs and pickers render a flat, shader-free iOStertiarySystemFillwell (kGlassSolidWellLight#1E767680in light mode,kGlassSolidWellDark#3D767680in dark mode, viaresolveGlassSolidWellColor) using aDecoratedBoxwith zeroAdaptiveGlass,BackdropFilter,GlassGlow, orpressScaleoverhead, and use nativeCupertinoColors.label/CupertinoColors.placeholderText/CupertinoColors.secondaryLabeltypography contrast (GlassSurfaceStyle.glasscolors remain unchanged). GlassDisclosureGroup.standalonenow acceptssurfaceStyle,color, andshape, delegating toGlassContainer.card(with 26pt continuous corners and 16pt dividerendIndentinsolidmode).
Bug Fixes #
- Controls inside solid
GlassContainer.card/GlassGroupedSectionretain full visual quality (avoidsRefraction: false):GlassContainer._buildSolidnow setsavoidsRefraction: falseon itsInheritedLiquidGlassscope soGlassSwitch,GlassSlider, andGlassSegmentedControlinside a solid card keep their full glass thumb/pill shader instead of degrading to a static vibrancy box. GlassPickergrouped-modesettingswarning:GlassPickerwithuseOwnLayer: falsenow resolves ambient/theme settings viaGlassThemeHelpers.resolveSettings(withLiquidGlassSettings(blur: 8)as the standalone fallback) and logs a debug warning if explicitsettingsare passed whileuseOwnLayer: false.
1.15.1 #
Bug Fixes #
-
GlassModalSheetcontent stays hidden untilmorphFrom: Sheet content now scales, clips, and fades in continuously inside the expanding Liquid Glass droplet duringmorphFrom/morphFromRecttransitions, and nested glass controls inside the sheet preserve their glass settings and backdrop alignment across the morph handoff. -
Dark-mode
GlassContextMenuplatter 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 viaGlassSwipeActionScope, and bothtintedGlassandsolidVibrancystyles.GlassListTileaddsleadingSwipeActions,trailingSwipeActions,swipeActionStyle, andonDismissed. -
Disclosure accordion sections (
GlassDisclosureGroup): Collapsible list sections with rotating chevron (RTL-aware), spring or curve expansion, controlled/uncontrolledisExpandedstate, automatic divider interleaving insideGlassGroupedSection, andGlassDisclosureGroup.standalonefor standalone glass cards. -
Edit Mode & reorderable lists (
GlassEditScope,GlassEditController,GlassEditButton,GlassReorderableList): Ambient list editing modeled on SwiftUI'sEditButtonandForEach.GlassReorderableListandGlassReorderableList.groupedsupport grabber drag or press-and-hold reorder with native lift shadow and split card edges.GlassListTileaddsisEditing,canDelete/onDelete(with animated slide-in delete confirmation),canInsert/onInsert,canReorder/reorderIndex, andcanSelect/isSelected/onSelectedChanged.GlassReorderableList.groupedandGlassGroupedSectiontakedividerIndent(anddividerEndIndenton the list) to match native row insets.- Behavior change:
GlassListTile.leadingis 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.
- Behavior change:
-
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 asGlassContextMenu, the.glassContextMenu()widget extension,showGlassContextMenu, or directly onGlassListTile(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, andGlassFullScreenCoverBarwith 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.wheelstyles acrossdate,time, anddateAndTimemodes, plus multi-date selection (GlassMultiDatePicker) and optionalmonthNames,weekdayNames, anddateFormatterlocalization overrides. -
Declarative navigation stack (
GlassNavigationStack,GlassNavigationLink,GlassNavigationPath): Value-based and builder-based declarative routing synchronized bidirectionally with native swipe-back gestures andGlassNavigationShellpinned chrome. Includes the.navigationTitle()widget extension, which automatically drives enclosing or descendantGlassAppBar/GlassAppBar.pinnedtitles (whentitleis null) viaGlassNavigationTitleScope. -
iOS 27 theme presets (
GlassThemeData.ios27): Addedconst GlassThemeData.ios27(),GlassThemeSettings.ios27Light/ios27Dark, andGlassThemeVariant.ios27Light/ios27Dark, plusshadowElevationandshadowoverrides onGlassThemeSettingsand explicit horizontal leading-inset forwarding onGlassAppBar.pinned(padding:). -
Solid card surfaces (
GlassSurfaceStyle,GlassContainer.card): Addedenum GlassSurfaceStyle { glass, solid }andGlassContainer.card(plussurfaceStyleonGlassGroupedSection,GlassReorderableList.grouped,GlassDatePicker, andGlassMultiDatePicker).GlassSurfaceStyle.solidbypasses the glass shader to render a flat, opaque inset-grouped card (#FFFFFFlight,#1C1C1Edark, and#2C2C2Einside elevated modal sheets/covers).solidignoressettings,qualityanduseOwnLayer. Defaults toglassin 1.x, so nothing changes unless you opt in; the default flips tosolidfor list sections, date pickers andGlassContainer.cardin 2.0.0 (seedocs/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, andGlassNavigationStack.
Deprecations #
GlassCardis deprecated in favour ofGlassContainer.card:GlassCardforwards toGlassContainer.cardwith identical defaults and renders identically; it will be removed in 2.0.0. Migration is a rename (seedocs/MIGRATION_0.x_TO_1.0.md).
Bug Fixes #
- Automatic
useOwnLayerfallback forAdaptiveGlassoutside ofLiquidGlassLayer:AdaptiveGlassnow detects when no ancestorLiquidGlassLayeris present and provisions its own layer (effectiveUseOwnLayer = true) instead of asserting whenGlassQuality.premiumis requested.
1.14.2 #
Features #
-
Hold adaptive quality measurement during heavy app work (PR #445):
GlassAdaptiveScope.holdMeasurement()returns aGlassMeasurementHoldthat suspends Phase 2 warm-up and Phase 3 runtime frame-timing measurement while open (plusGlassAdaptiveScope.settleFramesAfterHoldframes 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 #
-
ProgressiveBlurdid not repaint when an ancestor moved its retained layer (PR #444):_RenderProgressiveBlurnow mixes inTransformTrackingRenderObjectMixinand marks itself for paint when its global transform changes, preventing misplaced or missing blur regions after route transitions or animated ancestor transforms over aRepaintBoundary.Thanks to @almazfm for the fix (#444).
-
Open
GlassMenuItem.submenucards stayed stale whenGlassMenu.itemschanged (PR #443): Open submenu levels now track their parent row'ssourceIndexand rebuild their header and child rows indidUpdateWidget, 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).
-
GlassDialogtwo-action row clipped long or large-scale labels (PR #442):GlassDialognow measures two-action labels withTextPainteragainst half the dialog width (accounting forDefaultTextStyle,Directionality, andMediaQuery.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).
-
GlassButtonpress highlight bled outside the button shape whenblur: 0(PR #441): The ambient base light overlay inGlassButtonis now clipped directly toShapeBorderClipper(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
useOwnLayerglass surfaces withoutrimShadeorfrostnow 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, andGlassPullDownButtonmenus ran off screen and could not scroll (PR #440): These menus and theirGlassMenuItem.submenucards now enableautoAdjustToScreen: trueby 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):
JellyClippernow matchesAnimatedGlassIndicatorby 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.pinnedandGlassPinnedBarChromenow accept an optionalbuttonSize(double?, default44.0), sizing standalone bar buttons (the automatic back button andseparate/own/noneitems) tobuttonSize, scaling shared multi-item capsules proportionally (buttonSize + 2.0), and forwardingtoolbarHeightto the pinned host so buttons are vertically centered and custom items (e.g. a 48×48GlassButtonwithGlassBarItemBackground.own) are never squeezed to 44pt.buttonSizeis 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 largerbuttonSize.Behaviour note: a
GlassAppBar.pinnedbar'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.showaccepts an optionalsheetAnimationStyleto 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
GlassAppBarandGlassNavigationShellchrome now sit beside the corner status cluster in the status bar's row when iPhone Duo is held upright, withGlassScaffoldstarting content below the status bar.Thanks to @JakeThomson for the contribution (#426, fixes #368).
Bug Fixes #
-
GlassBarItem.customwithoutonTapwrapped its child in an unlabelled button (PR #434, fixes #432): OmittingonTapdefaulted 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. OmittingonTaponGlassBarItem.customorGlassButtonGroupItemnow leaves the slot passive — no outer button semantics, focus stop, tap recognizer, or strip overflow entry — and alabelon a passive slot names it as a single node.Thanks to @veloce for the bug report (#432).
-
GlassMenumouse hover pill (PR #430): TheselectionColorhighlight 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):
GlassPinnedBarChromenow removes its in-routeOverlayPortalstrip while its route is offstage, preventingsize == theater.sizeassertions 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):
GlassModalSheetScaffoldnow acceptsbarrierDismissible(wired fromGlassModalSheet.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;
GlassDialogandGlassModalSheetstayed centred across it. The iOS plugin now also reports the fold,UIView.reservedRegions(kind: .division), andGlassNavigationShellpublishes it with the cutouts as a hinge inMediaQuery.displayFeatures, so dialogs present into a side throughDisplayFeatureSubScreen.GlassModalSheetpresents into the same side as a card with its margins and a horizontal bar, andGlassModalSheet.restingWidthOfmeasures that side.Thanks to @JakeThomson for the contribution (#411, part of #368).
-
Modal sheet route settings (PR #419):
GlassModalSheet.showaccepts optionalrouteSettings, 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
SafeAreasay, 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 itsGlassVerticalBarspans.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
GlassMenuopened 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.GlassMenunow does the same.Thanks to @JakeThomson for the fix (#421).
1.12.0 #
Features #
-
Opt-in scroll edge pointer absorption (PR #413):
GlassScrollEdgeEffectandGlassScaffoldcan absorb touches in their fade zones whenabsorbPointer(edgeFadeAbsorbsPointersonGlassScaffold) is enabled; defaults tofalse.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):
GlassMorphControllernow uses an optimized settling tolerance so springs complete once motion is visually imperceptible. Eliminates trailing rebuild and repaint ticks acrossGlassMenu,GlassPopover, and modal sheets, reducing frame draw overhead by ~30%.Thanks to @Ahmadre for the contribution (#417).
1.11.1 #
Bug Fixes #
-
GlassBackdropGroupdroppedbackerColoron members after the first (fixes #412): Surfaces with a visiblebackerColornow 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
renderLinkchanges 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:
MultiShaderBuilderdisposes 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
GlassMenusubmenus (PR #386):GlassMenuItem.submenuopens 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.onLevelChangedreports the depth and the whole stack's extent so an owner can make room for a card that overhangs the parent, andGlassMenu.maxStackHeightconstrains the stack, scrolling a card that would not otherwise fit.GlassMenuController.submenuDepthreports the current depth.Thanks to @F1orian for the contribution (#386).
-
stripRowToponGlassPinnedBarChromeandGlassNavBarRegistration(fixes #398, PR #399): In iPhone Duo's vertical bar strip, the items that stay horizontal were always pinned in the rowGlassAppBardraws its title in, so beside a bespoke header lower down they sat a row above it.stripRowTopputs that row where the bar's own header is.Thanks to @JakeThomson for the contribution (#399).
-
GlassVerticalBar.disabledkeeps 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 withUISplitViewController, and the other column keeps horizontal bars. Wrap that column inGlassVerticalBar.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
GlassTabBarshows 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.indicatorSettingsnow reaches the vertical bar's lens.Thanks to @JakeThomson for the contribution (#407).
Bug Fixes #
-
GlassTabBar.searchablein iPhone Duo's vertical bar strip (fixes #392, PR #393): WithGlassSearchBarConfig.showPillfalse the strip still ended the capsule with a search slot; it now leaves search out, as a nativeTabViewwithout its search tab does.GlassTabBar.searchableandGlassTabBar.minimizablealso takepassthroughOverPlatformView, 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
GlassTabBarasserted outside aGlassScaffold(fixes #394, PR #395): In iPhone Duo's vertical bar strip, the tab bar's capsule, search field and ✕ relied on theGlassScaffoldaround them for a glass layer, so atGlassQuality.premiuma bar placed any other way failed therenderLink != nullassertion. Each now brings its own layer, as the horizontal bar does; under aGlassScaffoldnothing changes.Thanks to @JakeThomson for the fix (#395).
-
GlassPinnedBarChromebuilder can now tell the package draws the strip (fixes #396, PR #397): On iPhone Duo, aGlassPinnedBarChromethe shell has not hoisted, such as one in a nested navigator, draws the vertical bar strip itself, butbuilderstill gothoisted: false, so a bar drawing its own capsules from it showed the back button and actions twice. The newGlassPinnedBarChromeData.inStripis true whenever the chrome is laid out for the strip, which the package draws whateverhoistedsays.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.resolvetakes them as cutoutdisplayFeatures, 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.specularLightAlphain dark mode, black atGlassDefaults.specularDarkAlphain light mode). An explicitGlassMenu.glowColorstill wins. -
GlassPullDownButtondropped item properties whenonSelectedwas set: Wrapping eachGlassMenuItemto report the selection rebuilt it with only a few fields, sosubmenu,height,titleStyle,subtitleStyle,iconColor,iconSize,maxLines,enablePressScale,closeDelay,isPressedandisSelectedwere 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, asToolbarSpacer(.fixed)does natively, where it used to assert. Across a transition each capsule follows its items, matched byidand 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): AddedglideTo(Offset),endGlide(), andcancelGlide()toGlassMenuController. 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 optionalexpandedDarkColorparameter toGlassModalSheetandGlassModalSheet.showso 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
semanticLabelparameters acrossGlassPicker,GlassMenu,GlassPopover,GlassTextField,GlassChip,GlassPasswordField,GlassSearchBar, andGlassSearchBarConfigto allow custom screen reader announcements.Thanks to @Ahmadre for the contribution (#387).
Bug Fixes #
-
Tinted
GlassBarItemdropped the bar'sbuttonSettings(fixes #372, PR #389): AGlassBarItemwith atintColorbuilt its capsule's settings from scratch, so underLiquidGlassSettings.ios27Lightit 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.ios27Darkover bright backdrops (fixes #373, PR #388): From mid-grey up,ios27Darklifted 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 newbodyShadeterm pulls a bright backdrop down by its luminance squared, outline included;ios27Darksets it to0.28and raisesrimShadeto1.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
GlassPickerto grow with large system fonts; and honored Reduce Motion across toasts, page controls, and searchable tabs.Thanks to @Ahmadre for the contribution (#387).
-
Controlled
GlassSwitchstate synchronization (PR #383): Fixed visual state desynchronization whenwidget.valueis unchanged or rejected by the parent. Reconciles the position controller to authoritativewidget.valueafter 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
GlassFocusRegionsplit 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 onGlassSegmentedControlandGlassSwitch, and the inner detector onGlassListTile, 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, asGlassButton.labeldocuments. GlassMenuItem.subtitleis announced as the row's value;GlassListTile.onLongPressis reachable by screen readers.GlassChip's delete button defaults to "Remove ‹label›" instead of being unnamed.canRequestFocus: falseis now honoured; it was silently overridden, so such controls still took keyboard focus.
Thanks to @cosmeao for the detailed report and reproduction (#381).
- An explicit label (
For 1.9.0 and earlier history see CHANGELOG_ARCHIVE.md or the GitHub Releases page.