SDK — Flutter
Status of the Flutter package. Currently unpublished.
Status: not yet published. There is no official Flutter package on
pub.dev. flutter pub add layers_sdk or layers will either 404 or
resolve to an unrelated third-party package — not a Layers-authored SDK.
What exists today
There is no first-party Flutter SDK. Workarounds:
- Platform channel to native code — once native iOS/Android SDKs
ship, a Flutter plugin will typically follow. In the meantime you can
POST directly to
https://in.layers.com/eventsfrom Dart using the raw HTTP payload. - Run a JS SDK inside a WebView — workable for hybrid screens but not a first-class integration.
Roadmap
A Flutter package is on the roadmap but not yet on pub.dev. When it
ships it will be published as layers_sdk (or similar) with iOS and
Android platform bindings.
If you need Flutter now
- POST events directly to the ingest endpoint from Dart using
package:http. See Reverse proxy for the request shape. - Use
@layers/nodefrom any server-side Dart bridge you control.