r/FlutterDev • u/vik76 • Apr 09 '22
Plugin Flutter desktop widgets don't need to suck
Let's face it. The default widgets do not look great on desktop. They look clunky and foreign. Many components, like the drop-down menus, feel out of place.
When building the UI for Serverpod, we needed something better. (If you don't know about Serverpod, it's the missing server for Flutter, go check it out.). We needed something that felt a little bit more familiar.
Meet "Stockholm," a collection of desktop-first widgets and themes designed to look and feel great on Mac and Windows. The widgets are familiar enough to be comfortable to use on any platform but avoid the uncanny valley by not aiming to replicate the native components exactly.
https://i.imgur.com/QvTWHue.png
Available on Pub today. Live demo here (the demo isn't too great on mobile).
8
u/sunbreakwang Apr 10 '22
https://github.com/leanflutter are focusing on Flutter Desktop
https://github.com/leanflutter/awesome-flutter-desktop is one of our project
Would you like to talk on our Discord server for awesome-flutter-desktop: https://discord.gg/Vw2v9kAN?
1
u/vik76 Apr 11 '22
Cool! I'll send a pull request for Flutter desktop. I'll check out the discord, but feel free to send me a personal message if you want to coordinate something there. :)
2
2
u/fphat Apr 10 '22
This looks gorgeous, congrats!
One tiny little thing: the text in the buttons seems to be misaligned vertically. I know it probably isn't, but to my eye, it needs to be a pixel or two up. I think it's the lower case. It puts the "center of gravity" of the text downward.
1
u/vik76 Apr 10 '22
The font rendering is slightly different on different platforms, so that may be the reason. But yes, you are right. I'll see if I can fix it. :)
2
2
2
u/demonspeedin Apr 10 '22
The demo works perfectly fine in landscape mode on Firefox Mobile (android). Looks very promising!
1
u/vik76 Apr 11 '22
Nice! I noticed that some spacing and fonts were off on my iPhone/Safari, so I will look into that.
6
4
u/Mrtylerdurden99 Apr 09 '22
Great work on both projects. This would make my life easier. Thanks π
1
1
u/David_Owens Apr 10 '22
This is looking good. Were you able to implement all of the UI elements needed for your Serverpod application using Stockholm, or did you have to use some Material components? Thanks.
1
u/vik76 Apr 10 '22
Most of the Serverpod UI is now made with Stockholm, but there may still be a few occurrences of Material. It's no problem to mix and match!
2
0
Apr 10 '22
[deleted]
2
u/vik76 Apr 10 '22
It's not grpc, it's all custom made. Takes it a step further and actually use the dart analyzer to look through your server code to generate the protocol.
You currently need Flutter for the development environment of Serverpod, but for testing / deployment all you need is Dart.
0
Apr 12 '22
[deleted]
2
u/vik76 Apr 12 '22
I pretty much built what I needed for the Serverpod app and itβs by no means complete. Iβm thinking it can serve as a good starting point. Hoping it will help some others and that it evolves over time. π
1
8
u/flocbit Apr 09 '22
Looks promising! :)