Skip navigation
The UIs you can create with #Flutter and some #Shader magic! ๐Ÿช„๐Ÿคฉ๐Ÿ‘‡๐Ÿผ
0:00 / 0:23

The UIs you can create with #Flutter and some #Shader magic! ๐Ÿช„๐Ÿคฉ๐Ÿ‘‡๐Ÿผ

Roaa ๐Ÿฆ„๐Ÿ’™

@roaakdm23K followers

Visit on X
835 likesDownloadOriginal post

288,875 views #Flutter #Shader

The UIs you can create with #Flutter and some #Shader magic! ๐Ÿช„๐Ÿคฉ๐Ÿ‘‡๐Ÿผ ๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ’ป Source code: Implementation details๐Ÿ‘‡๐Ÿผ

42 Comments

Comments from the original post on X (Twitter)

  • Roaa ๐Ÿฆ„๐Ÿ’™'s profile picture

    @roaakdm

    The warp effect you see is a pincushion distortion applied with a few lines of GLSL code

    54 likes

  • Roaa ๐Ÿฆ„๐Ÿ’™'s profile picture

    @roaakdm

    The shader file is loaded with a #ShaderBuilder from the flutter_shaders package that uses Flutter's newly stable #FragmentProgram API The #AnimatedSampler widget creates a dart:ui image from Flutter widget scenes, and the image is passed to the shader as a 2d sampler

    23 likes

  • Roaa ๐Ÿฆ„๐Ÿ’™'s profile picture

    @roaakdm

    The grid is a combination of OverflowBox, GridView, TweenAnimationBuilder, and GestureDetector widget. onPanStart() triggers the shader distortion, onPanUpdate() moves the GridView around, and onPanEnd() resets the distortion and snaps to the closest grid item.

    26 likes

  • Roaa ๐Ÿฆ„๐Ÿ’™'s profile picture

    @roaakdm

    Check the README for more details about the code ๐Ÿค“

    11 likes

  • Roaa ๐Ÿฆ„๐Ÿ’™'s profile picture

    @roaakdm

    Design Inspiration ๐ŸŽจ

    39 likes

  • Renan ๐Ÿ’™'s profile picture

    @reNotANumber

    ๐Ÿ˜ That is so cool!

    3 likes

  • Roaa ๐Ÿฆ„๐Ÿ’™'s profile picture

    @roaakdm

    Learning from the best ๐Ÿ‘€

    2 likes

  • Renan ๐Ÿ’™'s profile picture

    @reNotANumber

    Oh, you are learning with yourself

    2 likes

  • Tom's profile picture

    @cscoderr

    @tosinSpace Amazing ๐Ÿคฉ

    3 likes

  • Very Good Ventures ๐Ÿฆ„๐Ÿ’™'s profile picture

    @VGVentures

    ๐Ÿคฉ

    3 likes

  • Aarya Chopkar ๐Ÿ‡ฎ๐Ÿ‡ณ's profile picture

    @ChopkarAarya

    @itsvinayyay

    2 likes

  • Imtiaz Ahmad ๐Ÿ’™ ๐•'s profile picture

    @Its_immi

    Wow ๐Ÿฅบ๐Ÿ˜

    2 likes

  • Mouaz M. Shahmeh's profile picture

    @mouaz_m_shahmeh

    ุงุญุณู†ุช ุฑุคู‰ ๐Ÿ‡ธ๐Ÿ‡พ๐Ÿ’™๐Ÿ™‚

    2 likes

  • Brian Kariuki ๐Ÿ›ก๏ธ's profile picture

    @briankariuki

    ๐Ÿ‘Œ๐Ÿพ

    2 likes

  • Sarthak Jaiswal's profile picture

    @Sarthak001__

    Cool ๐Ÿ‘Œ, I will try to make it myself first ๐Ÿ˜.

    2 likes

  • Ritesh Doke's profile picture

    @riteshdoke

    Amazing #Flutter & #Shader magic from the #AnimationQueen

    1 like

  • Rich kids of base's profile picture

    @yasinaktimur

    OMQ

    1 like

  • Ruqaiya ๐Ÿ’™'s profile picture

    @ruqaiyasattar31

    ๐Ÿ˜

    1 like

  • Pedro Massango's profile picture

    @pedromassangom

    That is very interesting ๐Ÿ‘Œ๐Ÿฝ

    1 like

  • Rishu Kumar's profile picture

    @imrishuroy

    This is awesome

    1 like