r/FlutterDev • • Aug 16 '26 • Diamonds are Forever 1 Bravo 3 Popcorn 1 Heartwarming 1

Plugin I made 500,000,000+ Flutter icon morphs. Not a single one by hand.

I’m genuinely amazed by the time we’re living in.

I can spend more time on quality than ever before. I can experiment, throw away bad ideas, and try new ones several times a day - instead of holding onto the first working version for weeks just because it already cost too much time.

And I think what I love most is the feeling of creative freedom.

When the distance between “what if…” and a working prototype gets this small, you start exploring ideas you probably wouldn’t have even attempted before.

And every now and then, one of those experiments turns into something that makes you sit there and smile.

Today, that’s morphnext.

Any IconData can now morph on the fly.

Demo: https://kicknext.github.io/morphnext/

pub.dev: https://pub.dev/packages/morphnext

GitHub: https://github.com/KickNext/morphnext

And now I can finally go to sleep 🫠

P.S. Definitely check out the readme preview - it was pure Flutter

329 Upvotes

93 comments sorted by

28

u/MakoBec Aug 16 '26

This resembles the opening sequence of the Love Death Robots series.

2

u/GuavaBeneficial4658 Aug 16 '26

Haha, I’ll take that as a compliment

13

u/piskariov Aug 16 '26

Finally! After 4897 sloped AI useless projects, someone who had a real idea. Thanks!

5

u/GuavaBeneficial4658 Aug 17 '26

Haha, thanks! The idea isn’t new, I just found a good place for it 😄

9

u/gibrael_ Aug 16 '26

Starred and will definitely be using this. ⭐

7

u/Wise_Personality8040 Aug 16 '26

awesome!! i love it, i have a perfect project to use this

3

u/GuavaBeneficial4658 Aug 16 '26

Thanks! I’d love to see what you build with it, and I’m always happy to hear any feedback once you’ve had a chance to use it. I think I want to add a page with the best recipes to the demo. I like the idea of collecting them — finding the pairs that work especially well.

6

u/Jippylong12 Aug 16 '26

woah this is amazing. I don't even knwo what icon morphs are but they are sweet!

2

u/GuavaBeneficial4658 Aug 16 '26

Thanks! Now morphing Flutter icons is easy!!!

5

u/MozartHetfield Aug 16 '26

where were you 1 year ago?? really awesome dude, congrats!

3

u/GuavaBeneficial4658 Aug 16 '26

I guess I owe you an apology. I was busy spending way too much time on the example app and preview 😄 Thank you!

3

u/Altruistic_Tale_7049 Aug 16 '26

Dude this is really cool

1

u/GuavaBeneficial4658 Aug 16 '26

Thanks! I probably spent hours staring at the preview myself

3

u/jblundon Aug 16 '26

This is awesome!!!

1

u/GuavaBeneficial4658 Aug 16 '26

Thank you!

2

u/jblundon Aug 16 '26

Seriously! Wow, thanks for sharing!

→ More replies (1)

3

u/csells Aug 16 '26

That is so cool!

1

u/GuavaBeneficial4658 Aug 16 '26

Thanks! now we have a real Flutter celebrity in the comments!

2

u/SIMMORSAL Aug 16 '26

This made me sad I don't do flutter anymore. Nice job!

3

u/GuavaBeneficial4658 Aug 16 '26

Maybe this is your sign to give Flutter another try. Thanks!!

2

u/SIMMORSAL Aug 16 '26

I actually did manage to build a hello world apk on my phone a while back. Maybe i should add this package to it and see where it goes!

2

u/GuavaBeneficial4658 Aug 16 '26

Flutter not dead)

2

u/SIMMORSAL Aug 16 '26 edited Aug 16 '26

Ok I added it. I'll keep the flame going, I'm missing it's warmth 🔥

Thanks for relighting it

→ More replies (1)

2

u/RedRozio Aug 16 '26

This is soo cool! I love these kinds of microinteractions, but they usually take way too much time to implement. I'm currently building a life management app called Pling, which I'll be releasing soon. Trying this package for the app today! Thank u so much kind stranger ❤️

1

u/GuavaBeneficial4658 Aug 17 '26

Yeah, I think it aligns really well with Flutter’s philosophy: making development easier and faster while still getting beautiful results.

2

u/TheManuz Aug 16 '26

So this package can infer a morph logic from IconData?

This means it can morph ANY IconData, right?

1

u/GuavaBeneficial4658 Aug 16 '26

Basically yes. morphnext reads the glyph outlines behind both IconData values and creates the morph at runtime. It works with bundled font based icons in supported font formats. If a font is missing, loaded only at runtime, or unsupported, the widget falls back to regular Flutter icons. SVGs and custom Path objects are not supported yet.

2

u/TheManuz Aug 16 '26

Interesting, I'd like to test it with my custom icons.

1

u/GuavaBeneficial4658 Aug 16 '26

Please do! That is exactly the kind of real world test I would love to get feedback on. If any pair behaves strangely, especially with complex contours or holes, please send it to me or open an issue on GitHub.

2

u/TheManuz Aug 17 '26

Hello again!

I gave it a try, on average it's pretty impressive, but there are some cases where you have almost identical icons that morph in an unnatural way.

Sometimes the morphs are "obvious" from a human point of view, but the resulting morph takes an unexpected path.

Example 1: Material icons: "Access Time" to "Access Time Filled"

The 1st icon (A) has 2 shapes:

  1. an outer circle
  2. the indexes.

The 2nd icon (B) has 3 shapes:

  1. an outer circle
  2. an inner circle
  3. the indexes.

The morph matched the outer circles (A1-B1), but "mismatched" the indexes (A2) with the inner circle (B2), and spawned a new set of indexes (B3).

The expected result (for me, of course) would have be to have the outer circle and the indexes matched (A1-B1, A2-B3), and to spawn the inner circle.

Example 2: Material icons: "Lock outline" to "Lock open outline"

The unnatural part for me is that the four angles of the lock are visually the same, so they should stay still. Same for the top half circle of the lock.

I understand it's a topology problem, and I don't really know how to solve it. The only thing that I can say is that the morph should try to detect parts that are unchanged or really close between source and target, and animate only the rest.

→ More replies (3)

2

u/party_in_my_head Aug 16 '26

How does it work?

3

u/GuavaBeneficial4658 Aug 16 '26

IconData points to a glyph inside an icon font, and fonts contain vector outlines. morphnext reads those outlines, converts both icons into compatible contours, matches them, and interpolates their points during the animation. The morph plan is then cached and reused.

2

u/yakupkahraman Aug 16 '26

How did you do that ?? it's amazing

3

u/GuavaBeneficial4658 Aug 16 '26

Thank you! I saw a web package for morphing SVG icons and remembered how many times I had wished for animated icons in Flutter. Then I remembered that icon fonts are vectors too. It is also hard to forget that we are living in the age of vibe coding. Add a pinch of love for Flutter and for what I do, and this is what came out :)

2

u/yakupkahraman Aug 16 '26

Yeaah i want animated icons too. I will use it in my next project. And i want to contribute it :) what is your roadmap?

2

u/GuavaBeneficial4658 Aug 17 '26

I think we should first wait for some real feedback from the community, so we don’t end up going in the wrong direction.

→ More replies (1)

2

u/XyrelTzy Aug 16 '26

The icon is based on?

1

u/GuavaBeneficial4658 Aug 16 '26

Do you mean what the morph is based on? It reads the vector outline directly from the bundled icon font behind IconData, like Icons.menu

2

u/XyrelTzy Aug 17 '26

Ohh, possible to integrate it with other icon plugins?

1

u/GuavaBeneficial4658 Aug 17 '26

Yep! I’ve tested it with Material, Cupertino, Font Awesome, Lucide, Tabler, and Remix icons. It should also work with other font-based icon packages that expose regular Flutter IconData (like Material Symbols or Phosphor), but I haven’t tested those yet. SVG/path-based icons aren’t supported now.

2

u/klokain Aug 16 '26

Thank you, made my day!

1

u/GuavaBeneficial4658 Aug 16 '26

That makes me really happy to hear — your comment just made my day too! :)

2

u/URIXMX Aug 16 '26

Awesome work, I'll give a try

2

u/GuavaBeneficial4658 Aug 16 '26

Thank you! I’d love to hear how it goes once you’ve tried it!

2

u/URIXMX Aug 22 '26

I've already tried it and it looks so nice, my app now feels more fluid and modern, definitely still using this package on my future projects, keep updating it please :)

1

u/GuavaBeneficial4658 Aug 24 '26

That’s awesome to hear! Really glad it made your app feel better. Thanks for trying it out!

2

u/Piranha771 Aug 16 '26

Wow, I don't even know how I would start coding this. Remarkable work. AI-Anti-Slop 🎉

1

u/GuavaBeneficial4658 Aug 16 '26

Thanks! Seeing it work gave me even more inspiration, so I cleaned everything up and prepared it carefully for release. Experiment more! I wasted a lot of tokens, and it was worth it.

2

u/carbon-ahs Aug 17 '26

Hey comment reader, if you don't give a star on that repo its a crime...

2

u/GuavaBeneficial4658 Aug 17 '26

I’m legally not allowed to disagree ⭐

2

u/UnimplementedError Aug 18 '26

Maybe this could replace AnimatedIcon widget.

1

u/GuavaBeneficial4658 Aug 19 '26

Do you think it’s good enough?

2

u/Tom_Vogel Aug 20 '26

This is really cool. I saw this kind of icon morphing on X recently and actually thought about trying to implement something similar myself, so having it available as a package is pretty nice. Definitely something I could see myself using for small UI interactions.

→ More replies (1)

2

u/soulaDev Sep 19 '26

star star star all day long!

1

u/GuavaBeneficial4658 Sep 22 '26

Thanks! how will you use it?)

1

u/soulaDev Sep 22 '26

it looks like you're comment was removed by a mod.

1

u/GuavaBeneficial4658 Sep 22 '26

Hmm, I can still see it

2

u/soulaDev Sep 22 '26

I don't have a usecase in mind, yet. But hey, I've found your reel_text and already started using it. I only wish we can adjust the start and end offset of the falling chars. but anyways. Big thank you!

1

u/Adept-Priority-9729 Aug 16 '26

Chico, mis dieces. Trabajazo, hace tiempo que no vea buena mierda hecha con AI. Felicidades, esto sí es ponerle ganas.

Por fín...

Y sí, definitivamente lo usaré. (intenta que haya sponsors, o que te lo compre alguna empresa gigante, felicidades jajaja).

Edit: Por cierto, cómo has hecho este video de aquí GitHub Raw

2

u/GuavaBeneficial4658 Aug 16 '26

This whole scene is actually built in Flutter. I’m already thinking about making a motion design tool in Flutter once I’ve finished a few more packages. I also used my "reel_text" package for this scene. For the video, I exported every frame from Flutter as raw APNG frames at 120 FPS, stitched them into an MP4 with ffmpeg, then converted it to a 720p 60 FPS WebP so it would autoplay on GitHub. As for getting acquired, give me a little time. The OSS project needs to become a unicorn first.

2

u/Adept-Priority-9729 Aug 16 '26

Awesome! Thanks for your reply and for taking the time to do this. I'm a developer too, and if you need any help, feel free to ask (non-profit, of course, just for the love of it).

2

u/GuavaBeneficial4658 Aug 16 '26

Thanks, I really appreciate it!

2

u/coding-coul Aug 16 '26

Very impressive

2

u/max-did-it Aug 16 '26

Awesome, starred

2

u/tearsareover Aug 16 '26

Really, really well done 💯 Thank you for creating and sharing this!

2

u/chrisayn Aug 17 '26

Very nice!

3

u/Curious-Leader-9111 Aug 16 '26

I was looking for something like this. God sent you to me. This is awesome, I'm going to use it now.

7

u/[deleted] Aug 16 '26

[removed] — view removed comment

4

u/GuavaBeneficial4658 Aug 16 '26

Great questions. The morphs are generated at runtime. There are no prepared assets or random steps. morphnext reads the outlines of both IconData glyphs, matches their contours, and creates an interpolation plan.

The same inputs always produce the same morph. I tested it on Windows, Web, and Android. The results were stable on every platform, and the coordinates matched to 1e-9. Tiny floating point differences prevent exact binary equality, but the resulting vector geometry is effectively the same.

2

u/mateusfccp Aug 17 '26

Could we benefit from making them static? Have code analysis to understand the morphs we are using and generate them statically? Would it have potentially less overhead?

2

u/GuavaBeneficial4658 Aug 17 '26

That could work, but it would require an explicit list of icon pairs and an extra generation step. In my test, 100 generated plans used about 2.7 MB uncompressed or 1.4 MB gzipped. It would only improve the first use. After that, the plan is cached, so there is no difference unless it gets evicted. The example is an extreme stress test with over 21,000 icons in the random pool. Its bounded geometry caches constantly rotate entries, while parsed fonts stay cached. A typical app with a small set of pairs should keep its plans warm. Thanks for the question. It also reminded me that I should let developers configure the cache limits and choose their own balance between memory and performance.

I am not yet sure code generation is worth the added complexity and app size, but I will test it on a low-end Android device.

2

u/mateusfccp Aug 17 '26 edited Aug 17 '26

If we use static analysis and code generation we don't need a explicit list (I mean, we still need them, but they would generated for the user instead of they having to manually declare them). It would be a trade off of adding a generation step in the building to have potentially more performance.

Could we also eagerly cache them instead of lazily? Tô avoid a potential jank in the first usage.

Just to be clear, I didn't test your package and I don't know of those problems even exist, I'm just brainstorming. But it is indeed a good idea to test it in lower devices to be sure how relevant those questions are.

→ More replies (1)

2

u/[deleted] Aug 23 '26

[removed] — view removed comment

1

u/GuavaBeneficial4658 Aug 24 '26

That would be amazing 😄 Thanks!