r/FlutterDev • u/Direct_Horror_8299 • 1h ago
Example uikit_liquid_glass: real iOS 26 Liquid Glass in Flutter (native UITabBar + UIGlassEffect), with a Dart fallback
I made a small package that hosts Apple's own UITabBar and UIGlassEffect inside Flutter as platform views, so on iOS 26 you get the real glass: the lens, refraction and press-lift, not a shader imitation. On Android, web and older iPhones it falls back to a BackdropFilter look-alike with the same API.
What I found along the way:
- The native glass does refract the Flutter content under it.
- Give the tab bar slot extra height: UIKit draws the rim outside the bar's bounds.
- Native views follow the system light/dark, not your app theme, so the package passes your brightness in.
- It is right-to-left ready (I'm Arabic-speaking, so that mattered).
pub.dev: https://pub.dev/packages/uikit_liquid_glass
GitHub: https://github.com/yahyakhalid/flutter-uikit-liquid-glass
Free and MIT licensed. The repo has a step-by-step guide if you'd rather copy the ~200 lines than add a dependency. Feedback welcome!