r/FlutterDev • u/noobjaish • Jul 14 '26
Discussion Flutter is such a godsend for Linux app development
So, I have used several different frameworks to create desktop apps for linux and almost all of them have had issues that bite you in the rear once you're in the deeps of that project. Compared to creating android, ios, windows or mac apps; linux apps just feel harder to make. The two main dev toolkits for Linux are "GTK" and "Qt"... and both of them make the dev experience so miserable:
- GTK: When it comes to GTK, you're basically on your own. There are like 7 different languages that you can use to build GTK which makes the already small pool of apps you can use even smaller, Gnome Builder has a tendency to break half the times on Gnome itself and it is proportionally harder to builder a non-libadwaita app. Oh and GTK apps are linux-only...
- Qt: Qt makes the licensing side of things a head-scratcher and once you have sorted that out then you have to deal with their abysmal documentation that's constantly behind the releases. C++ isn't exactly a comfortable language to use and while Qt Creator is a fantastic IDE to use, it's equally as confusing to setup if you're thinking on using Python + QML. Qt Apps are also incredibly ugly by default so a considerable effort goes into making them not look hideous.
Then we have the web-based frameworks:
- Electron: Sure, this is an easier way to create cross-platform desktop apps but it just eats way too much resources. It makes sense for apps that are primarily a website like Spotify or Discord (even then why would I use their apps over their PWAs) but for creating an app from scratch? Yeah no. Electron also carries a lot of legacy baggage due to being an old technology.
- Tauri and Wails: These two are the webview alternatives for Electron and use rust/go over nodejs for backend and as such have significant performance improvements but the issue with them is with the underlying webview used on linux
webkit2gtkwhich is so bad that it makes these frameworks look bad. CEF integration is being worked on by Tauri and until then I wouldn't use it for larger apps with very specific system interactions. - Deno Desktop: This is a very simple way to build apps that launched very recently in Deno making it very easy to create desktop apps and gives the choice between CEF or Webview but it's barebones due to being very new.
- Electrobun: Probably the best "web-based" technology to create desktop apps. It gives the choice of webview and cef, the bundle sizes are larged but still significantly smaller than electron and uses bun which is much faster than both deno and node. However, it has basically a non-existent community, the framework lacks a lot of features and is in sort of a limbo until bun receives the rust rewrite.
There are also rust-based frameworks like Dioxus, Iced, Gpui (+50 others that spawned just now) which I avoid just because of rust's insane compile times. It's also just a pain to do UI in rust (logic feels good doing in rust however) and each of them have their own issues.
Lastly, we have Flutter which draws a native UI on linux using GTK (which is easier to theme), has arguably the best dev experience, pub makes dependency management very easy, there is actual guidance on how to structure your apps, riverpod is the most intuitive State/DI library imo and there exist alternative libraries that you can use instead of Material (which looks good in it's own right). You can use FRB or directly use the dart ffi and can target all 5 platforms with one codebase quite easily. I can go on and on and sure there is the issue of Flutter multi-window on linux right now and also we have to wait till 2028 for the complete decoupling of material/cupertino but even then this is such an outstanding framework that makes desktop appdev a joy.
I forgot to mention that you can create desktop apps in Godot as well which I might try one day but it just sounds so cursed to use a game engine for desktop apps. What are your thoughts on this?
66
u/autognome Jul 14 '26
It’s also what Mark Shuttleworth wanted for Ubuntu for years. So a lot of people agree it’s just people not being hip to flutter desktop. The more success the more hype more people will realize as well
55
u/Full-Run4124 Jul 14 '26
I've been a Unix/Linux developer for nearly 30 years. I'm comfortable with C/C++.
I completely agree with you. I'd also add Code::Blocks and wxWidgets into your list of existing meh solutions.
I have some complaints about Dart, but by-and-large for basic GUI apps Flutter is a godsend for Linux.
(side note: Qt had a moment where it might have made it. Nokia bought it and planned to make it FOSS, then Microsoft Microsoft'ed Nokia and they sold it.)
23
u/Rimtariro Jul 14 '26
Developer experience and ergonomics of Flutter is hard to beat, it's one of the best outside Linux too.
Just one correction: Flutter does not create "native" GTK UI. It creates a window using GTK, and then hands over the rendering to Flutter engine (imagine it like a 2d/3d game engine). The GTK/Yaru theme for Linux is created in a way that it looks and works same as GTK controls would, however, there are still some slight differences that you might notice if you try hard.
8
u/paul_h Jul 14 '26
Examples of Flutter apps for Linux you think are great?
9
u/soniq__ Jul 14 '26
Flutter web however is completely fucked, especially if you need to be 508 compliant its a huge pita. Linux desktop app much better use for flutter
2
u/aKuKupl Jul 14 '26 edited Jul 17 '26
Any experience with Compose for Desktop?
2
u/heavenlydemonicdev Jul 14 '26
Call me crazy but I love building desktop programs in Godot.
3
u/rsajdok Jul 14 '26
There is no alternative to flutter, look at mobile market, around 50% of application it's a proof
2
u/ozyx7 Jul 14 '26
I'm not out to defend GTK, but:
What do you mean? Are you talking about programming languages? That seems like an odd statement to make given that Flutter uses 1 language. And GTK is C-based, which is basically the lingua franca for bindings for other languages.
There re implementations of GTK for Windows and macOS too.
1
u/Prudent_Move_3420 Jul 14 '26
i will say the swift version of gtk is really neat to use, also works easily on macos. It basically writes like a SwiftUI app tho
1
u/rockes13 Jul 14 '26
What stack do you use for backend?
I only been using flutter for mobile only, because it is obvious that we need separate stack for frontend and backend
For desktop, i am more like a delphi or java swing guy, a complete monolithic application
1
u/notagreed Jul 15 '26
Compose Multiplatform?
3
u/SwiftScoutSimon Jul 15 '26
I spent most of my time building Lumide on macOS with Flutter, then switched to Linux and it just run without any issue. I just need to revamp the window title bar a bit for the control buttons.
2
u/Nuk37 Jul 17 '26
Based
1
u/imSeanGG Jul 16 '26
went down a similar rabbit hole but ended up settling with wails + react with MUI. I love material design and these components are so much easier to design. I was working on building a pretty deep windows application where flutter sandbox would make things complicated. Prototyping with ai + react is just so much faster. Will give flutter another try for fun side linux projects
1
u/jNayden Jul 17 '26
Flutter draws a native UI on Linux using GTK? what ?
1
u/Deep_Ad1959 Jul 18 '26
the godsend ends at accessibility. flutter draws every pixel itself, so nothing hits at-spi and a screen-reader pass is a second project, that kills more picks than the ~20mb engine ever does.
1
u/Deep_Ad1959 Jul 18 '26
building desktop apps solo, i pick the toolkit that spares me from maintaining three native build chains, and flutter does that better than anything gtk or qt offer. people fixate on whether it draws native widgets when for a small team the whole game is shipping updates across linux/mac/windows without a separate toolchain war each time. the resource complaint is fair for electron, a lot less so here.
1
u/gryto Jul 19 '26
Dioxus now has live reload
1
u/Odd-Librarian4630 Jul 20 '26
Yea been developing a linux / multi-platform desktop app with it and it's been fantastic! Can't wait till they get multi-window support working properly and impeller too
1
u/Mean-Celery-9335 Jul 29 '26
Superb <3
0
u/JohnVonachen Jul 14 '26
If you just want to develop something for Linux, with a GUI, python has tkinter. Have you looked into that?
-4
u/biskitpagla Jul 15 '26
Qt license is fine and you don't have to use C++. Stop making AI slop and do your own research.
-7
u/teomore Jul 14 '26
Totally false, I stopped here.
0
u/[deleted] Jul 14 '26
[deleted] — view deleted comment
0
u/[deleted] Jul 15 '26
[deleted] — view deleted comment
11
u/[deleted] Jul 14 '26
[removed] — view removed comment