r/FlutterDev • u/starling-dev • Aug 03 '26
Article The Swift port of Flutter’s framework behind that desktop I posted is now a standalone SDK
A while back I posted the Linux desktop we built on a Swift port of Flutter's framework. The most common question was about the port itself, so: it's now usable on its own, without the desktop.
The framework — widgets, rendering, painting, gestures, animation, semantics — is ported from Dart to Swift, with everything below unchanged: Skia, the text stack, the platform embedders. There's no Dart VM; where the engine would start an isolate it starts a Swift runtime instead. The Linux host is the engine's own GTK embedder, so windowing, input and IME come from the same
code path a normal Flutter Linux app uses.
The port is close to mechanical, so Flutter's concepts carry over intact — StatefulWidget, setState, BuildContext, constraints down and sizes up. Same counter app, same structure. The main difference is Swift's result builders: containers take trailing closures, so `if` and `for` work directly inside a widget tree.
We did it because we're building system software where the language mattered, not because there's anything wrong with Dart. Flutter's the reason any of this was possible.
Linux x86_64 today, macOS next. BSD-3, inherited from Flutter.
https://starling.build/sdk.html
https://github.com/starling-build/starling/tree/main/sdk
2
u/saxykeyz Aug 04 '26
Have you tried bundling for Android using the swift port?
1
u/No_Librarian_1001 Aug 04 '26
我想问问什么时候可以轮到 Windows 呢?😆,Windows 是否值得拥有它😆
1
u/vsmenon Aug 05 '26
[ I work on Dart / Flutter. ]
There is no Dart VM in production Flutter apps in general.
The Dart virtual machine is for development, where it's used to provide fast iteration and stateful hot reload. For deployment, Dart is compiled directly to machine code.
1
u/shiva81 Aug 04 '26
Great work
1
u/[deleted] Aug 04 '26
[removed] — view removed comment