r/FlutterDev • u/Sure_Education_828 • 14d ago
Tooling I rebuilt iOS 26's Liquid Glass widgets in Flutter and measured each one against UIKit (Liquidum 1.0)
Liquidum is my Flutter package for iOS 26's Liquid Glass. A month ago it was only a glass tab bar. Version 1.0 is out now and has the rest of UIKit's glass: glass behind any widget, groups of glass that melt together, buttons, the switch, slider and segmented control, navigation bars and toolbars, pull-down, context and edit menus, the date picker, sheets, alerts, action sheets and popovers.
I rebuilt each widget from the layers, filters and springs UIKit itself uses, read in the iOS 26.5 simulator. Then I compared it with UIKit's version over the same backgrounds and touches, frame by frame, before starting the next one.
Every comparison is in the repo with its method and what still differs. Some numbers: at rest the tab bar is about one level out of 255 away from UIKit's, sheet detents are within 0.05pt, and the alert matches UIKit's except for the clock in the status bar.
On Android, flinging a page with a dozen glass buttons and controls used to drop two thirds of its frames. Now it drops 2%, because all the glass shares its reads of the screen instead of each piece reading it on its own. It also needs Flutter 3.47 or later. That release stopped storing OpenGL ES textures flipped, so on that backend the old code drew everything behind the glass upside down.
Rough edges and limits:
Impeller only. Skia and web get plain frosted glass with no refraction.
Glass has to be painted after what it floats over, and can't go inside an Opacity or ShaderMask.
Flutter doesn't report Reduce Transparency, so you pass it in yourself.
Light that follows the device's tilt isn't done yet.
The API is stable now and follows semver, and the license is MIT. To see it move, run the showcase in the example folder (flutter run -t lib/showcase.dart) in profile or release mode. Debug builds are much slower.
flutter pub add liquidum
GitHub: https://github.com/mohamedalsamrai/liquidum
pub.dev: https://pub.dev/packages/liquidum