News for hackers. Stuff that matters.
Re:Ask HN: Best way to share client code in 2023 by ozaiworld on Friday January 06, 2023 @05:24PM (#34282148)
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.

Re:Ask HN: Best way to share client code in 2023 by jamil7 on Saturday January 07, 2023 @04:52AM (#34286701)
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.