Hacker News new | ask | show | jobs
by ozaiworld 1255 days ago
As someone working on mostly native iOS apps, Flutter apps, and React webpages, I’ve been looking for a solution to share common models and other utilities between clients.

Kotlin Multiplatform definitely looks like the most mature option, but I’m looking at Flutter/Dart as an option, too. Dart has support for method channels with Swift/Obj-C and Kotlin/Java plus there’s the official dart2js compiler.

I personally don’t think Flutter is the right choice for a best-in-class native mobile app and definitely not for a website, but I think there might be something worthwhile using Dart as the language of shared library like Kotlin Multiplatform.

1 comments

Interesting, any resources on using Dart in this way? I also do native iOS development as a day job.

Edit: Pieced together how to do this from the official docs.