How does Dart (or Flutter) compile to iOS, Android, and other "native" code?

This page summarizes the projects mentioned and recommended in the original post on /r/ProgrammingLanguages

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • sdk

    The Dart SDK, including the VM, dart2js, core libraries, and more.

  • Just walked this great talk by Kasper Lund on Dart2JS, and I see the dart2js compiler source code. Where is the source code for translating to Swift (for MacOS or iOS) or Kotlin (for Android) or C perhaps (for "native" like Linux perhaps)?

  • Flutter

    Flutter makes it easy and fast to build beautiful apps for mobile and beyond

  • I see https://github.com/dart-native/dart_native, but it looks small and references flutter. Flutter's source code leads to ./packages/flutter_tools/lib/src/ios/mac.dart, but I'm not sure I'm seeing the compiler to generate what I would think would be Swift code.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • dart_native

    Write iOS&macOS&Android Code using Dart. This package liberates you from redundant glue code and low performance of Flutter Channel.

  • I see https://github.com/dart-native/dart_native, but it looks small and references flutter. Flutter's source code leads to ./packages/flutter_tools/lib/src/ios/mac.dart, but I'm not sure I'm seeing the compiler to generate what I would think would be Swift code.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts