liquid_glass_widgets 1.20.0
liquid_glass_widgets: ^1.20.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.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.