Skip to main content

liquid_shell 0.1.0-dev.14 copy "liquid_shell: ^0.1.0-dev.14" to clipboard
liquid_shell: ^0.1.0-dev.14 copied to clipboard

Adaptive navigation shell with a Liquid Glass look for iOS and Android. A floating tab bar on phones and a glass sidebar on tablets, with no router dependency.

0.1.0-dev.14 #

  • liquid_shell's own code no longer imports package:flutter/material.dart, which Flutter 3.50 deprecates, so its static analysis is clean on 3.50. Nothing changes for apps: the Material types are still the SDK's own.
  • Fixed: with native chrome, a shell under a pushed shell no longer draws its own page bar under the native one, 54 pt low, during the push and the pop; its content stays put.
  • Fixed: a shell that takes the native chrome over from another one (a pushed or replaced shell, one popping back to its owner, a quick off → auto, a hot restart) keeps native's layout until its own config is shown, so there is no frame without a bar and no jump; where native shows no page bar (an iPad's default root), it keeps its own bar until then.
  • Fixed: a shell that leaves native chrome (nativeChrome: off, a chromeBuilder, a destination without an sfSymbol) no longer shows its page bar and tab bar under the native ones for a moment: it keeps native's layout until native has hidden, then draws its bars where the native ones were.
  • LiquidNativeSearchActiveChanged takes a named active (see liquid_shell_platform_interface). liquid_shell requires the 0.1.0-dev.14 platform packages.

0.1.0-dev.13 #

  • Fixed: with native chrome, a root page with actions no longer shows a moment without any bar, then its content jumping down, when the native chrome comes up: the shell keeps its own page bar until the native bar is shown. The native chrome then appears at once: its tab bar no longer fades in on a Flutter → native switch or after dormant.

0.1.0-dev.12 #

  • With native chrome on an iPhone Duo, chromeKind is the new LiquidChromeKind.verticalBar while the system shows its vertical bar, and chromeInsets is the bar's side (it was bottomBar with the home indicator's inset). The new enum value breaks an exhaustive switch over LiquidChromeKind: add the case.
  • A scroll view that a GlobalKey moves out of a LiquidPage no longer drives, or keeps, that page's large title.

0.1.0-dev.11 #

Migration from 0.1.0-dev.10 #

0.1.0-dev.10 has the API of 0.1.0-dev.9; these steps hold from either.

  1. Native bars on every tab. With native chrome on iOS 26+, a LiquidPage on any tab now gets UIKit's navigation bar instead of the Flutter bar. To keep the Flutter bar in a shell, pass nativeChrome: LiquidNativeChrome.off (all of its chrome is then Flutter's). Code that read LiquidShellScopeData.nativePageBar to decide whether to draw its own title row now sees true on every tab of an engaged shell.
  2. largeTitle: true on a root page is now a large-title row under the bar row that collapses as the page scrolls, in both bars. Before, the Flutter bar (and the iPhone's native search tab) put the large title on the bar row: that look is now largeTitle: null in a compact window. In a regular window there is no equivalent (a root page there shows no bar row, or the collapsing row).
  3. largeTitle on a pushed page is ignored: its title is always inline. Before, the Flutter bar drew a pushed page's large title on a row of its own (UIKit already drew it small).
  4. LiquidHideChrome over a LiquidPage keeps the page's bar under native chrome (the Flutter bar already did). For a page that fills the screen, leave LiquidPage out of it.
  5. Platform interface (implementers and exhaustive switches). LiquidNativeEvent gains LiquidNativePageActionTapped. It is sealed, so an exhaustive switch over it needs the new case. LiquidNativeChromeConfig.tabBarHidden and LiquidNativePage.actions are new fields with defaults.
  6. Native minimize follows pushed pages: a behaviour change, no code change needed.
  7. UIKit's large title follows the page's first vertical scroll view on screen, as the Flutter bar does: the shown list of a PageView or a TabBarView now moves it; a multi-line text field, a second list beside the first and a hidden segment's list no longer do.

After 0.1.0, versions follow semver strictly.

Changes #

  • Flutter page bar, complete (VK-445). On iOS before 26, on Android and with Flutter chrome, LiquidPage(largeTitle: true) on a root page now draws its large title on a row of its own that scrolls away as the page scrolls, while the inline title fades into the bar row, as UIKit's does. The page's top padding stays put while it collapses.
  • Behaviour change (VK-445). A pushed page's title is always inline: largeTitle applies to root pages only. Before, the Flutter bar drew a pushed page's large title on a row of its own, where UIKit drew it small.
  • Behaviour change (VK-445). largeTitle: true on a root page now means the collapsing row. Before, the Flutter bar put it on the bar row, which is what largeTitle: null gives a root page at compact width.
  • Fix (VK-776). A shell nested in another shell's body with no navigator between (a tab's page that is itself a LiquidShell) no longer answers back beside the outer shell. One back asked a page's PopScope twice (an unsaved form showed two dialogs; with three shells, three). A nested shell in a tab that was not shown still held back: back popped a page the user could not see, and at a root shell on Android the app could not be left. With the outer shell's overlay sidebar open or its search active, one back also popped the nested shell's page. The outer shell now asks the nested one in its own order, and only while it is on screen. With a navigator between (go_router's StatefulShellRoute and ShellRoute always put one there) nothing changes.
  • Fix (VK-779). Compact landscape with the Flutter chrome: selecting the search tab from idle (a tap on the ⌕, a lens drag dropped on it, or the app) no longer reports "A RenderFlex overflowed by 12 pixels" in debug builds for the first frame of the morph. The field's row keeps the width of its fixed parts and is clipped while it grows out of the 44-point ⌕. Release builds showed nothing wrong.
  • Fix (VK-778). When the Flutter overlay sidebar closes by Escape, a tap on its barrier, its Hide button or system back, keyboard focus goes back to what held it when the sidebar opened (a page's control or text field, the sidebar toggle). Before, it stayed on the route, so a hardware-keyboard user lost their place. Nothing is given back when another destination is selected while the sidebar is open, in the sidebar or by the app (the page changes), and the shell's own search field is never refocused this way: focusing it starts a search. Nothing is given back either when a route opens in the same turn (a dialog or a pushed page, on any navigator; the route keeps focus), or when something else takes focus as the sidebar closes (a field that autofocuses). The exception is a route that takes no focus (requestFocus: false) opened on a navigator around the shell's own. An app that moves focus itself when it closes the sidebar should do so after the frame: before it, the page cannot take focus yet, and the give-back wins. Likewise, an app that changes the page as it closes the sidebar should select before or in the same turn: a page change after the closing frame, or one inside the body that the shell's selectedIndex does not show (a nested shell's tab, the app's own Offstage tabs), can leave a hidden field with focus.
  • Fix (VK-778). The regular search field (the search tab selected in the top bar or sidebar layout) keeps inside the horizontal safe area, as the bars do since 0.1.0-dev.8. Side insets reach that layout only through breakpoints that give a landscape phone the regular layout, where the field ran under the notch. Beside a tiled sidebar only the trailing inset is added: the sidebar already clears the leading one.
  • Native navigation bars on every tab (VK-441, VK-442). With native chrome on iOS 26+, a LiquidPage on any tab now gets UIKit's navigation bar: its title, the glass back circle and its history menu, the large title and the scroll-edge effect. Before, only the search tab had one and the other tabs drew the Flutter bar. A tab whose pages do not use LiquidPage looks as before, and so does a root page with an inline title: their bar stays hidden.
  • Behaviour change (VK-442). With native chrome, LiquidHideChrome over a LiquidPage hides only the tab bar and the sidebar; the page's navigation bar stays, as the Flutter bar already did. Over a page without LiquidPage it still hides everything.
  • Behaviour change (VK-441). The native tab bar's minimize (minimizeOnScroll) now follows pushed pages too, as the Flutter bar does. A push or a pop keeps the bar's form.
  • Behaviour change (VK-442). Native large titles follow the 0.1.0 title model: largeTitle: true on a root page is a large-title row that collapses as the page scrolls (on the iPhone's search tab it sat on the bar row), and a pushed page's title is always inline.
  • A LiquidPage pushed above a page without one now gets the native back circle: a root titled with the destination's label stands in for that page (VK-442).
  • LiquidShellScopeData.nativePageBar is true on every tab of an engaged shell. Under the compact native bar, windowControls is the real cluster while the selected tab's navigation bar is hidden and zero while it shows; with LiquidHideChrome at regular width it is no longer zero when nothing clears the cluster (VK-442).
  • The edge swipe on any tab's pushed page stays Flutter's: the page follows the finger, and the native bar switches when the gesture ends (VK-444).
  • Behaviour change (VK-442). UIKit's large title follows the same scroll view as the Flutter bar: the page's first vertical scroll view on screen. A multi-line text field, a second list beside the first and a hidden segment's list no longer move it; the shown list of a PageView or a TabBarView now does.
  • Fix (VK-442). A page's scroll offset now reaches native after the push or pop that puts the page on top, never before. Before, it could land on the page being left: after a push and a back, a scrolled root showed its large title expanded over its list.
  • Page actions (VK-443). LiquidPage(actions: [...]) takes up to three LiquidPageActions (sfSymbol, icon, label, onPressed; a null onPressed disables the action). With native chrome on iOS 26+ they are UIKit bar buttons in the navigation bar's glass group; elsewhere 44 pt glass circles at the trailing end of the Flutter bar. A root page with an inline title shows its bar when it has actions. More than three is a debug assertion; release builds show the first three.

0.1.0-dev.10 #

Fix: on Android with three-button navigation the bottom tab bar no longer covers the buttons. The bar's own height now tells a button bar (48 dp) from a gesture handle (under 32 dp).

0.1.0-dev.9 #

First release on pub.dev.

0.1.0-dev.8 #

  • The package archive no longer includes tests (they read files outside the package). The README states the supported platforms (iOS and Android), the install requirements and the known issues.
  • Behaviour change (VK-600). With native chrome on iOS 26+, minimizeOnScroll (default true) now also minimizes UIKit's compact tab bar when the body scrolls down. With false the native bar never minimizes, as before.
  • Visual change (VK-600). With native chrome on iOS 26+ and minimizeOnScroll: true (the default), UIKit now draws its bottom scroll-edge effect: the body near the bottom edge, under and beside the compact bar, is softly blurred, as under a native UITabBarController over a scroll view. With minimizeOnScroll: false the effect is hidden and the body there stays sharp, as before.
  • Both bars expand when a fling or a programmatic scroll (a status-bar tap, animateTo(0)) reaches the top. A drag back never does. This is new for the Flutter bar too.
  • A change of the selected destination expands both bars, except that the native bar keeps its form when the change selects the search tab (UIKit's own form there). Neither bar minimizes while the search tab is selected.
  • A new shell (a new key, a hot restart) expands a native bar that an earlier one left minimized.
  • A wide iPad (regular width: top bar, sidebar) never minimizes.
  • Known limits of the native bar: platform views (web view, native map) do not minimize it; trackpad, mouse and Apple Pencil scrolling do not; bottomAccessory is out of scope. A very long feed is handled by growing the hidden proxy's content.
  • Fix (VK-572). With native chrome, LiquidSearchValue.composing now ends with the native search. A dismissal mid-composition that the app or the shell asked for (deactivate(), another tab, a dialog above, hidden chrome) or a reconnected scene left it true until the user's next edit, so an app that checks composing before writing held its write. It affects IMEs that mark their text (Japanese, Chinese), not Apple's Vietnamese Telex. onChanged is not called for it: the text did not change.
  • Fix (VK-572). When native chrome takes over while the Flutter field holds the search (focused, its keyboard put away, or composing), for example nativeChrome back to auto or a late native install, the search now ends with its text kept, as it does when the Flutter field hides, and native is told the search is inactive. Before, isActive (and composing) stayed true while UIKit showed an idle search: system back was blocked, deactivate() did nothing, and a shell pushed as a page could not be popped.
  • Fix (VK-594). iPhone with native chrome, in landscape, search active with the keyboard up: chromeInsets.bottom and LiquidShellScope.contentPaddingOf(context).bottom were 0, so the results could not scroll clear of the field and the keyboard. They now cover the raised field, as in portrait (268 pt on an iPhone 17 Pro). The iPad is unchanged.
  • Fix (VK-604). Native scope bar: a user tap on a scope that the app removed at the same moment no longer leaves the bar and LiquidSearchController.scopeIndex on different scopes: the shell sends the controller's scope back to native. doc/search.md now says that the app clamps scopeIndex when its scopes shrink.
  • Fix (VK-593). A page title kept alive off screen (a PageView page) no longer rebuilds on every frame.
  • Fix (VK-593). Back is no longer swallowed by a NavigatorPopHandler with no callback around a branch navigator; one with a callback answers back whether enabled or not.
  • Fix (VK-593). Back no longer pops a page in a PageView or list page that is off screen (kept alive, or in the cache extent).
  • Fix (VK-593). Back and the iOS edge swipe pop a navigator nested in a tab's page first (a nested flow, a go_router ShellRoute in a branch), then the tab's page; before, they popped the tab's page or the whole shell.
  • Fix (VK-775). A second back while a dialog is still closing pops the page of a navigator nested in the tab's page, not the page that holds it: a route that is closing no longer covers the page under it.
  • Fix (VK-680). Back and the iOS edge swipe pop the page of a tab that a router shows a few frames after the selection (the end of a cross-fade), also with no PopScope of the app's own; before, they popped the whole shell.
  • Fix (VK-774). A shell nested in another shell's body (sub-tabs) answers back in its own order: its overlay sidebar closes, then its active search ends, then its tab's page pops. Before, the outer shell popped the inner shell's tab page directly.
  • Behaviour change (VK-774). With a nested shell's search active at its tab's root, back ends that search instead of popping the outer shell's route; with its overlay sidebar open, back closes the sidebar first.
  • Fix (VK-699). When Flutter chrome takes over an active native search (nativeChrome: off, a forced glass tier, a lost native install, standby under another shell), the search now ends with its text kept, composing false and onChanged not called. Before, the controller stayed active (and blocked back) or kept composing true.
  • LiquidGlassRenderer is now marked @immutable. No behaviour change; a custom renderer with a non-final field or a non-const constructor now gets the analyzer's must_be_immutable or prefer_const_constructors_in_immutables (VK-702).
  • Fix (VK-702). A platform implementation whose watchSignals() throws instead of returning a stream no longer breaks every LiquidGlass: the glass uses no signals, and debug builds log the error once.
  • Behaviour change (VK-702). The gap below the bottom tab bar now follows the device's platform (defaultTargetPlatform) instead of ThemeData.platform. An Android app themed as iOS keeps clear of a 3-button navigation bar; an iPhone app themed as Android sits 21 pt above the home indicator. App widget tests that model an iPhone only through ThemeData.platform now get the non-iOS gap (flutter test runs as Android): run them with TargetPlatformVariant.only(TargetPlatform.iOS) or debugDefaultTargetPlatformOverride.
  • Behaviour change (VK-702). While the Flutter overlay sidebar is open, the page, the top tab bar and an idle search field behind its barrier take no keyboard focus, focus starts in the sidebar, and Escape closes it. A page text field that had focus loses it (the keyboard closes) when the overlay opens, and focus is not restored to it when the sidebar closes. An active search field behind it keeps its focus, and Escape there still ends the search.
  • Visual change (VK-702). The bottom tab bar, the compact search row and the top tab bar keep inside the horizontal safe area: on a phone in landscape they move clear of the notch or of an Android side navigation bar or display cutout. A custom chromeBuilder tab bar gets constraints narrower by the side insets. With no side insets (portrait, iPad) nothing moves.

0.1.0-dev.7 #

  • LiquidSegmentedControl (VK-550). A public segmented control after iOS 26's UISegmentedControl: a flat 32 pt track centred in a 44 pt box, a white thumb, and a liquid lens that lifts under the finger, follows a drag across segments, and lands with a wobble (a tap commits on release; one selection click per segment crossed while dragging). Controlled and text-only: segments (LiquidSegment(label, enabled, semanticLabel), two or more), selectedIndex, onChanged (null disables the control), expand (fill the width, or size to the labels) and semanticLabel. Colours and label style come from three new LiquidGlassTheme fields: segmentTrack, segmentThumb and segmentLabelStyle. Text scale to x2, RTL, reduce motion and the large content viewer are handled. See doc/segmented_control.md.
  • Search scopes (VK-550). LiquidSearch.scopes takes the scope titles (two or more, or null). LiquidSearchScopeBar.scopes is now optional: null reads the shell's LiquidSearch.scopes; when both are given they must be equal (debug assert). An app write of LiquidSearchController.scopeIndex now reaches the shell, so the native scope bar can follow it. LiquidShellScopeData.nativeSearchScopes is true while UIKit draws the scope bar, and the new LiquidShellScopeData.searchScopes holds the shell's LiquidSearch.scopes (null without scopes or a shell search). See doc/search.md.
  • Native scope bar on iOS 26+. With native chrome and LiquidSearch.scopes, the scope bar is UIKit's own (.manual activation, shown while the search is active, hidden when it ends). It sits at the top on an iPhone and under the field on an iPad. LiquidSearchScopeBar builds nothing there. A tap on a scope selects it and puts the keyboard away; the search stays active.
  • Platform interface. LiquidNativeEvent is sealed and gains a case, LiquidNativeSearchScopeChanged: an exhaustive switch over it needs the new case (as in dev.5, sealed, add the new cases). LiquidNativeSearchConfig.scopes and setNativeSearchScope are new.
  • Known limits. In expand mode below 44 pt per segment the hit targets follow the segment width. An intrinsic "A | B | C" is 132 pt against native's 96 (the 44 pt minimum, owner Q-C). The landing wobble matches native's flick capture in peaks and settle time, not frame by frame (Q-E). On five segments a tap over three or four segments overshoots more than native's (up to 5.6 pt against 4.3); native's lens bends the labels it passes, these stay above it.
  • Behaviour changes.
    • LiquidSearchScopeBar is drawn by LiquidSegmentedControl: a flat track with a white thumb and a liquid lens, as iOS 26's UISegmentedControl, instead of a glass pill with a primaryContainer chip and an ink ripple. Its height is unchanged (44 pt).
    • Segment labels keep your app's font family (ThemeData.fontFamily, read from textTheme.labelLarge); size and weights follow UISegmentedControl (13 pt, w400 / w500 when selected). Set LiquidGlassTheme.segmentLabelStyle.fontFamily to choose another. In the system font on iOS and macOS (no family, or SF Pro) the labels take SF Pro's tracking for the drawn size, as UIKit does (−0.08 pt at 13 pt); an app's own font keeps its spacing.
    • LiquidSearchScopeBar.scopes changed from List<String> to List<String>?. Every constructor call still compiles; only code that reads bar.scopes as non-null needs a !. Allowed before 1.0.
    • Widget tests: each segment's title is painted twice (the normal label and the copy under the lens), but only the normal one is a Text, so find.text('Songs') still finds one widget. Prefer tapping a segment through its node, find.bySemanticsLabel('Songs'): the labels themselves ignore pointers.

0.1.0-dev.6 #

  • Tab bar fidelity (VK-503). The Flutter tab bar matches iOS 26.5: native slot geometry (86 pt slots, 21 pt margins, the pill pinned at the start beside a trailing circle), a liquid lens that engages on touch (milky in its core, clear and refracting at its rim, with the rainbow), follows a drag and snaps on release (the measured springs), tinted and magnified icons under the lens, a pill swell, a highlight and a finger glow, an icon pop on tap, and selection clicks while dragging. See doc/tab_bar.md.
  • Behaviour changes.
    • A tab is selected on release, not on touch. A drag selects the tab nearest the lens when it lifts, a flick the tab under the finger.
    • Every tab slot draws selectedIcon ?? icon, selected or not, as iOS draws a filled symbol in every slot. Give each destination a filled selectedIcon. The sidebar still switches icon / selectedIcon by selection.
    • Tab colours: the selected tab is ColorScheme.primary on a neutral capsule (selectionFill), not a primaryContainer chip; the others are tabForeground. Sidebar rows use tabForeground too.
    • There is no ink splash.
    • With minimizeOnScroll, the minimized bar is a 48 pt icon-only circle that expands on a tap or on a selection change, not when the page scrolls back up, as on iOS 26. A chromeBuilder sees the same in LiquidChromeDetails.minimized: it stays true until the chrome calls details.expand or the selected destination changes.
    • LiquidChromeDetails.minimized is also true while the search tab is selected (the bar collapses into a circle beside the search field); details.expand does not expand it there, leaving search does.
    • The bottom LiquidTabBar fills the width it is given. With a trailing action the pill is pinned at the start and the circle at the end; without one the pill is centred. Give it a narrower box (a SizedBox) to keep the circle close to the pill.
    • Landscape phones get the 44 pt bottom bar (icon beside a 12 pt label) instead of the top bar: a landscape shell lower than LiquidShellBreakpoints.compactHeight (500) is compact. Pass compactHeight: 0 for the previous layout.
    • The iPad top bar is 48 pt, label only (17 pt, the search tab as an icon), 5.5 pt below the safe area instead of 20, so it sits 14.5 pt higher and, with the 4 pt lower bar, a regular layout's chromeInsets.top is 18.5 pt smaller.
    • The bottom bar margin is 21 pt (8 pt in a narrow shell).
    • Badges are the native 21 pt red capsule, #FF383C in light and #FF4245 in dark (badgeColor), in the tab bar and the sidebar.
    • LiquidSearchValue.active and LiquidSearchPhase.active mean the search is open, not that the field has focus (VK-571): after dismissKeyboard() (a drag on the results, a scope tap) the Flutter field has no focus and the phase stays active, as it does natively. A chromeBuilder or searchPhaseOf reader that took active for "keyboard up" sees the field in the bottom row with its × instead.
  • New: LiquidGlassTheme.selectionFill, tabForeground, badgeColor, tabIconSize; LiquidShellBreakpoints.compactHeight; a scroll-edge pocket under the liquid bottom bar (three blur bands and a faint dim, liquid tier only: frosted, solid and Reduce Transparency draw none).
  • Defaults changed for every glass surface (bars, circles, sidebar, dialogs, the back button): rimHighlight 0.12, liquidTint a neutral milky white @ 0.55 (light) / #1C1C1C @ 0.90 (dark) instead of the scheme's surface @ 0.40 / 0.45 (native glass takes no app hue), shadow 7 % (0, 3) blur 20, dispersion 0 in the constructor and in fromColorScheme (the touched tab lens adds its own fringe; pass dispersion: 0.3 for the previous look), labelStyle 10 / 1.2 / w500 / no tracking.
  • Fixes (VK-491, VK-502). The native page stack is computed after the frame, so a tab switch no longer sends the stack of the tab just left; a tab keeps its pages while offstage, and returning to it restores them without replaying the push.
  • Fix (VK-551). With native chrome an active search now blocks the shell's own pop, as the Flutter field already did: system back deactivates it, and the iOS edge swipe no longer pops a shell pushed above another page while the search is active (which left the keyboard with nothing to dismiss it). Only an active search does this: while it is active, the swipe on a page pushed in the search tab pops that page (VK-567 below does the same with the search inactive, in every tab). Hidden native chrome (LiquidHideChrome) ends an active search and keeps its text.
  • Fix (VK-567). Back pops the tab first, as on iOS. In a shell that is itself a pushed page, the iOS edge swipe on a page pushed in any tab popped the whole shell, natively and with Flutter chrome: Flutter gives the swipe to the shell's own route before the tab's. Now, while the selected tab's navigator (the one on screen under body) can pop, the shell blocks its own route: the swipe pops the tab's top page, and system back pops it through maybePop, so the page's PopScope still decides. A tab at its root lets the shell's route pop as before; a page kept in another tab never holds it. Also new: a shell at the app's root pops the tab's page on system back (Android) instead of leaving the app, and an app's own PopScope on the shell's route hears didPop: false while a tab's page pops (doc/router_integration.md). A drawer or a persistent bottom sheet on the tab's page closes first, at the tab's root too; with several navigators on screen, back pops the last one that can pop. A navigator inside a tab's page is not looked at yet. Migration: remove a NavigatorPopHandler around a branch navigator (the README's "Hide the chrome" case no longer has one). One the app keeps answers back for its navigator and the shell only blocks its own route, so one back is still one step.
  • The search keyboard goes on a drag or a scope tap (VK-571). As in Apple Music and Settings, a user drag that scrolls the shell's body (the results), or a tap on LiquidSearchScopeBar, puts the keyboard away and keeps the search: the query, the results, the active phase and its × stay. Natively the field resigns first responder (UIKit's search stays presented); the Flutter field unfocuses and the search stays active. A tap on the field brings the keyboard back; ×, deactivate(), system back, another tab or hidden chrome end the search, as before. Only a drag that moves at least as far along the list's axis as across it counts: a programmatic scroll, or a near-horizontal swipe over the results (the iOS edge swipe, even when the thumb drifts and the list scrolls a little), keeps the keyboard. New LiquidSearchController.dismissKeyboard(), and LiquidSearch.dismissKeyboardOnDrag (default true) to opt out of the drag. See Behaviour changes for what active now means.

0.1.0-dev.5 #

  • Search tab. LiquidDestinationRole.search on LiquidDestination (at most one, the last destination, placed everywhere) with LiquidShell.search (LiquidSearch: controller, placeholder, onChanged, onSubmitted). LiquidSearchController, LiquidSearchValue and LiquidSearchPhase (idle, selected, active); LiquidSearchScopeBar, a glass segmented control for search scopes. On iOS 26 with native chrome the field is UIKit's own UISearchTab: on iPhone the ⌕ becomes the field and the tabs collapse to one circle; on iPad the field sits under the title row and rises into it when active. Everywhere else the shell draws the same states in glass, liquid on the default tier. The query is kept across tab switches; × clears it.
  • Pages and the glass back button. LiquidPage (title, large title, the back button when its navigator can pop) and LiquidBackButton. In the native search tab, UIKit draws the title and its glass back circle; every back, the long-press back menu included, is a proposal that goes through Navigator.maybePop, so PopScope runs.
  • A root LiquidPage's large title now sits on the bar row, as Apple Music's does: in the Flutter bar on every platform, and natively on iPhone (on iPad the native search root shows a small title, or its own large-title row with largeTitle: true). A pushed page's large title keeps a row of its own in the Flutter bar; under the native search tab, UIKit draws it small and centred (see LiquidPage.largeTitle).
  • LiquidShellScopeData.searchPhase and nativePageBar; chromeInsets covers the search field in every phase, so LiquidShellScope.contentPaddingOf keeps working (never add viewInsets on top).
  • LiquidShellStrings.searchPlaceholder, cancelSearch and back.
  • LiquidChromeSlot.searchField and LiquidChromeDetails.search (LiquidSearchChromeDetails) for a chromeBuilder.
  • Breaking: LiquidChromeSlot gains searchField, so an exhaustive switch (details.slot) in a chromeBuilder needs the new case (or a default).
  • Example: a real "Search" case (songs and places, Vietnamese without accents matches); the trailing action case is now "Compose".

0.1.0-dev.4 #

  • Liquid glass. A built-in, clean-room lens shader draws the liquid tier on Impeller: edge refraction, a specular rim, light dispersion, blur and tint. LiquidGlass.precache() loads it before the first frame. New LiquidGlassTheme fields, all optional with defaults: liquidTint (solid @ 0.40, 0.45 when dark), refraction, dispersion, liquidBlurSigma.
  • Frosted instead of liquid without Impeller, on Android without Vulkan 1.1 or under 3 GiB of memory, in battery saver and iOS Low Power Mode, after sustained slow frames, and inside another BackdropFilter.
  • The Flutter glass alert and action sheet (showLiquidAlert / showLiquidActionSheet off the native path) draw the liquid tier too: they are LiquidGlass. Doc images case_alert and case_action_sheet are now the liquid tier.
  • A forcedTier keeps shells under it on Flutter chrome.
  • LiquidGlassSignals gains lowEnd, glesOnly, slowFrames and prefersFrosted.
  • Breaking:
    • Liquid is the default tier on Impeller (iOS, Android 10+, macOS), where glass was frosted. Force frosted with LiquidGlassPolicy(forcedTier:) to keep the old look.
    • tint and blurSigma now style frosted only. The liquid tier reads liquidTint, liquidBlurSigma, refraction, dispersion, rimHighlight (its specular rim), shadow and the shape. A brand theme that sets only tint/blurSigma shows on the default tier as the stock liquid glass: set liquidTint (and liquidBlurSigma) too. border and borderWidth draw on frosted and solid, not liquid.
    • LiquidGlassSignals.canBlur is removed (Skia now draws frosted, not solid); debugLiquidGlassCanBlurOverride is now debugLiquidGlassCanRefractOverride; battery saver gives frosted, not solid.
  • Known limits of the liquid tier (README "Limitations", doc/liquid.md): it writes opaque pixels, so over a transparent window or in an image capture of a subtree it is a solid tint (force frosted there); under a scaling or rotating ancestor the lens is placed on the bounding box.

0.1.0-dev.3 #

  • showLiquidAlert / showLiquidActionSheet: native UIAlertController on iOS 26+, Flutter glass elsewhere; LiquidAlertAction, LiquidAlertActionStyle, LiquidDialogPresentation; LiquidShellStrings.dismiss. Example: Alerts and action sheets case; the guard uses the native alert.

0.1.0-dev.2 #

  • Native iOS 26 chrome (opt-in) on iPhone and iPad, compact windows included: LiquidShell(nativeChrome:), LiquidNativeChrome, LiquidNativeSidebarFooter, and sfSymbol on LiquidDestination and LiquidTabAction. Every iPhone gets the floating bottom tab bar, and so does an iPad window of compact width; a full or wide iPad window gets the top bar and the sidebar.
  • LiquidNativeUnavailableReason.notIPad was removed (it never shipped in a release): an iPhone is no longer a reason to keep the Flutter chrome.
  • Window controls: LiquidShellScopeData.windowControls, LiquidWindowControlsClearance, and the Flutter top bar and sidebar header move past the iPadOS 26 window controls.
  • LiquidShellScopeData.nativeChrome; LiquidNoChrome passes the window controls through.
  • debugResetLiquidNative() for tests that swap the platform.
  • In debug, a shell that could use native chrome but lacks an sfSymbol logs one line, once per shell, naming the destinations and the trailing action without one.
  • Example: every case with a real shell runs native on iOS 26; the cases about the Flutter chrome say so on screen.

0.1.0-dev.1 #

  • Initial development release.
1
likes
160
points
1.23k
downloads
screenshot

Documentation

API reference

Publisher

verified publisherlasoai.vn

Weekly Downloads

Adaptive navigation shell with a Liquid Glass look for iOS and Android. A floating tab bar on phones and a glass sidebar on tablets, with no router dependency.

Repository (GitHub)
View/report issues
Contributing

Topics

#navigation #glassmorphism #adaptive-layout #tab-bar #sidebar

License

MIT (license)

Dependencies

flutter, liquid_shell_android, liquid_shell_ios, liquid_shell_platform_interface

More

Packages that depend on liquid_shell

Packages that implement liquid_shell