Skip to main content

pubspec.yaml

The core package is required. Add only the backends you use.
pubspec.yaml
runanywhere_qhexrt publishes at 0.20.19, not 0.20.24. Pin it separately rather than aligning it with the others; 0.20.24 does not exist on pub.dev for that package.
Full set:
pubspec.yaml
Common combinations:
Then:

Requirements

iOS

For speech input, add to Info.plist:

Android

android/app/src/main/AndroidManifest.xml

Importing

One import covers the whole public surface:
Proto types, when you need them:

Registering a backend

Register before initializing.

Devices, not emulators

The Android emulator has no arm64 native libraries for these backends, and MLX only executes on physical iOS hardware.