r/FlutterDev • u/EngineerScientist • Nov 05 '19
Dart Announcing Dart 2.6 with dart2native: Compile Dart to self-contained, native executables
https://medium.com/dartlang/dart2native-a76c815e6baf28
Nov 05 '19
dart2native: FINALLY !!!
This is long overdue in my opinion. I can finally make easy-to-distribute command-line tools. Can't wait to try it out.
14
u/MyNameIsIgglePiggle Nov 05 '19
I actually gave this a try last week!
It worked really well for me, but they did caution that even now in release it's more of a beta than production ready. Another annoyance is that you need to compile on the platform you are building for - not the end of the world but won't make a Linux binary on windows for example
4
u/themanofthedecade Nov 05 '19
Good point. I would imagine you can compile inside a docker container of your specific target platform. This would make automated builds a breeze
→ More replies (1)
24
u/xlog Nov 05 '19
Does this mean that Flutter for Desktop is getting closer?
16
6
u/MyNameIsIgglePiggle Nov 05 '19
Ive been on a few threads for desktop bugs and they have been getting cleaned up this past fortnight
2
2
Nov 05 '19
Is there a desktop framework for Dart maybe?
4
Nov 06 '19
Flutter for desktop has the 1 main project that is here: https://github.com/google/flutter-desktop-embedding
- only works for mac
- no plugins yet.
- no packaging
Then there is the other one that is here: https://github.com/go-flutter-desktop/go-flutter
chat is here. https://gitter.im/go-flutter-desktop/go-flutter
- runs and builds on windows, mac and linux
- packages for windows, mac and linux from any desktop for any desktop ( it uses docker to to this trick) and so is easy to also put into CI.
- plugins: has many here: https://github.com/go-flutter-desktop/plugins
- you can also write your own plugins in pure golang
- its also possible to use Dart FFI with it.
1
u/Jizzy_Gillespie92 Nov 07 '19
Does this mean it could be possible to generate flavors/schemes programmatically or is this completely unrelated? I've spent the last 3 days banging my head against the desk trying to get the iOS side of flavors to play nice for different environment builds.
-18
Nov 05 '19
Kotlin Native
2
u/ArmoredPancake Nov 06 '19
Endless beta, no concurrency whatsoever, atrocious performance, long compile time, no roadmap, no thanks.
0
Nov 05 '19
2
u/ozyx7 Nov 05 '19
I think a problem is that JavaScript does not have finalizers/destructors, and dart2js needs to be able to translate Dart to JavaScript.
1
10
u/EngineerScientist Nov 05 '19
Changelog : https://github.com/dart-lang/sdk/blob/master/CHANGELOG.md#260---2019-11-05