Skip navigation
Time to play with Liquid Glass in your #FlutterDev app!
0:00 / 0:20

Time to play with Liquid Glass in your #FlutterDev app!

Tim

@imadetheseworks1.4K followers

Visit on X
444 likesDownloadOriginal post

39,528 views #FlutterDev

Time to play with Liquid Glass in your #FlutterDev app! I've pushed a prerelease to pub, check it out here: It is obviously a first version, so don't expect this to work perfectly, and the API might change a lot still 🥃🥛🥂🍑

44 Comments

Comments from the original post on X (Twitter)

  • Seth Ladd's profile picture

    @sethladd

    Also, let us know if you need anything from the lower levels of the framework or engine to make this easier for you.

    40 likes

  • Tim's profile picture

    @imadetheseworks

    There were a bunch of ways I went down where I had to turn back because of Flutter limitations. One of them is the lack of support for floating point textures in shaders. There is no good way I found to render a shader output to a pass and use it for another shader

    9 likes

  • Seth Ladd's profile picture

    @sethladd

    Good feedback thank you

    8 likes

  • Tim's profile picture

    @imadetheseworks

    Thank's again for being so engaging always, such an asset to the community!

    8 likes

  • Seth Ladd's profile picture

    @sethladd

    it's easy when we're so inspired by folks like you!

    7 likes

  • Seth Ladd's profile picture

    @sethladd

    Does this work in Flutter Web?

    5 likes

  • Tim's profile picture

    @imadetheseworks

    No, it relies on ImageFilter.shader, so it’s exclusive to Impeller… but there might be a way to get it to work in Skia

    8 likes

  • Seth Ladd's profile picture

    @sethladd

    Love the settings to play around with it!

    4 likes

  • Tong Mu's profile picture

    @DKWmt

    The merging shape is amazing!

    4 likes

  • Jules Bilong's profile picture

    @JulesBilong

    The only thing missing is the clipping. ✨👏✨

    3 likes

  • Tim's profile picture

    @imadetheseworks

    Do you mean the prism-like effect? Say no more ☺️

    25 likes

  • Jules Bilong's profile picture

    @JulesBilong

    Yes, that's correct, but it seems that IOS26 effect is slightly different. It partially hides 12% of Apps Icons before revealing the first deformation.

    2 likes

  • Tim's profile picture

    @imadetheseworks

    Ah, I see what you mean! That is just part of the refraction, my implementation does it the exact same way, but how strong it is depends on the thickness of the glass. Look at the video when I pull the glass over the „phone“, it also only becomes visible further in :)

    2 likes

  • Jules Bilong's profile picture

    @JulesBilong

    Your approach is very good, but to be 1:1 with iOS 26, it needs to exhibit that behaviour accurately. I'm looking forward to your next update. Well done!✨👏✨

    1 like

  • Sebastian Röhl's profile picture

    @SebastianRoehl

    Damn, that was fast! Good job 🙌

    3 likes

  • Jisena's profile picture

    @kimjisena

    You might find this interesting @tuke2911

    2 likes

  • Smit Mehta's profile picture

    @Smitmehta01

    The liquid_glass_renderer/example Doesn't Work When Run Or Built In Debug Mode On Windows For Any Of It's Supported Compile Target Platforms, Namely, Web: Dart2JS/WASM Cuz ImageFilter.shader Dep, But Same For Windows & Android: w/wo '--enable-impeller' Flags Passed Explicitly ...

    2 likes

  • Tim's profile picture

    @imadetheseworks

    Yes, I forgot to put this in the readme, but it‘s Impeller only for now. Sorry!

    3 likes

  • Arsh Abbas Hashmi's profile picture

    @ArshAbbasHashm1

    Please let me know if I can contribute

    1 like

  • Zen Bui's profile picture

    @definev2

    You nailed it 😍

    1 like