Skip to main content

pubspec.yaml

The core package is required. Add only the backends you use.
pubspec.yaml
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.