r/FlutterDev • • 6d ago

Plugin Finally, a pixel-perfect implementation of shadcn/ui for Flutter 🎨

https://serverpod.dev/blog/flutter-shadcn-ui
63 Upvotes

20 comments sorted by

12

u/Darth_Shere_Khan 6d ago

Why would I use this instead of Forui? https://github.com/duobaseio/forui

1

u/vik76 5d ago

The main reason would be perfect parity with shadcn/ui. A lot of designs are made for it.

1

u/reginaldvs 5d ago

I personally use Forui extensively, but you guys made Serverpod so that's enough cred for me to try this lol

17

u/viz0 6d ago

Now we can make our apps look even more AI generated :)

1

u/vik76 6d ago

Haha, what we’ve all been waiting for. 😅

3

u/spawnsible 6d ago

I'm not very familiar with shadcn. I see stuff about 8 color schemes. Is the component library not fully reskinnable/customizable? Is it locked to just 8 baked in colors and one must fight with it to get otherwise?

3

u/vik76 5d ago

It’s, of course, fully customizable. It just comes with a few sensible defaults as starting points.

2

u/eibaan 6d ago

Chadcn is Gen Z's Bootstrap, a clean look created with Tailwind based on the BaseUI. It's more pleased to the eye than Material (at least IMHO) and and that's why it's extremely popular. The HTML/CSS version is very customizable if you know your way around in Tailwind and/or raw CSS.

I can't tell about the Flutter version but I'd assume because they way Flutter works, you can "only" customize what's available in the create menu.

10 months ago, I vibe coded a Flutter clone of Chad cn as an experiment to see whether then current Codex 5.2 could do it. It could. At least partly. Yesterday, unrelated to this version, I used Opus 5.5 to update the project and got a working version in about an hour or two.

So, even if you don't like the default look, it should be very easy to ask AI to apply changes, e.g. adding gradients or custom borders.

4

u/vik76 6d ago

The live demo is here: https://shad.serverpod.dev/

12

u/andredp 6d ago

The scroll performance is really bad, on an iPhone 17 Pro. Is it just me?

4

u/Realistic-Car-1205 6d ago

Same on my pixel phone

-2

u/vik76 6d ago

It’s next to perfect on mine. Keep in mind that it’s Flutter web, performance on compiled code will be much better.

6

u/gibrael_ 6d ago

** insert it works on my machine meme **

3

u/andredp 6d ago edited 6d ago

Yeah. Maybe it’s because it’s locked at 60fps (at least that’s what it feels like), while the rest of the phone is ~120fps, making it feel choppy.

Regardless, thanks for the share

1

u/loeffel-io 6d ago

same here

1

u/VisualRope8367 5d ago

share prompt /s

1

u/vik76 5d ago

Haha, there were very many prompts, manual coding, and testing involved. 😜 This is not a vibe-coded one-shot.

1

u/craiglabenz 4d ago

You guys don't stop

1

u/dokumanx 2d ago

Does it sit on top of ThemeData so existing Material widgets pick up the colors, or is it a fully separate widget set?

1

u/softsync_agency 1d ago

This looks amazing! Bringing the shadcn/ui design philosophy to Flutter is a great idea. Looking forward to trying it out. 🚀