๐ฅ Installation¶
How to add SpriteStudio Player for Flutter to your app. The native runtime (libssruntime) is
delivered automatically through Dart native assets โ there is no CocoaPods, framework, or
DynamicLibrary path to configure, and no Rust toolchain to install.
Supported environment¶
| Item | Details |
|---|---|
| Flutter / Dart | Flutter 3.47+ / Dart 3.13+ (native assets is default-on from 3.38; the flutter_gpu backend sets the 3.47 floor). ssplayer_flutter's environment: enforces it, so flutter pub get tells you if yours is older |
| Platforms | macOS ยท Windows ยท Linux ยท iOS ยท Android; Web is a developer preview |
| SpriteStudio | Projects made in SpriteStudio 7.6 or later |
| Native toolchain | None โ the native runtime is downloaded prebuilt by the ssruntime_dart build hook |
Add the dependency¶
Add ssplayer_flutter from pub.dev, and the converter as a
dev dependency:
ssruntime_dart, the runtime bindings underneath, comes with it.
What else to add depends on what you use:
| For | Add |
|---|---|
| Flame Integration | flutter pub add flame ssplayer_flame |
| Live Reload | flutter pub add --dev ssgen_flutter |
The web target
The web runtime ships inside ssplayer_flutter. Call await loadSsRuntime() once before
runApp; on the other platforms it does nothing.
Developing the core?
Building libssruntime from Rust source, or hacking on the Player itself, is covered separately
in the Build Guide โ app users never need it.
Verify¶
Import ssplayer_flutter in your app and confirm flutter pub get
resolves and the app builds. The native library is fetched and embedded on the first build; no extra
setup.
Next steps¶
- No
.ssabfile yet? โ Preparing Assets (.sspjโ.ssab) to build one from your SpriteStudio project. - Already have an
.ssab? โ Quick Start to load and play it in a widget.