Mario Zechner f28f25da47 [flutter] Change package name to spine_flutter пре 2 година
..
android 075ed81426 [flutter] Initial FFI plugin scafold + example. пре 3 година
example f28f25da47 [flutter] Change package name to spine_flutter пре 2 година
ios f28f25da47 [flutter] Change package name to spine_flutter пре 2 година
lib f28f25da47 [flutter] Change package name to spine_flutter пре 2 година
linux f28f25da47 [flutter] Change package name to spine_flutter пре 2 година
macos f28f25da47 [flutter] Change package name to spine_flutter пре 2 година
src f28f25da47 [flutter] Change package name to spine_flutter пре 2 година
windows f28f25da47 [flutter] Change package name to spine_flutter пре 2 година
.gitignore 075ed81426 [flutter] Initial FFI plugin scafold + example. пре 3 година
.metadata 075ed81426 [flutter] Initial FFI plugin scafold + example. пре 3 година
.pubignore 33463ff2eb [flutter] Include example in pub.dev package. пре 2 година
CHANGELOG.md f28f25da47 [flutter] Change package name to spine_flutter пре 2 година
LICENSE bf9911ec33 Update Spine Runtimes License. пре 2 година
README.md 1202343820 [flutter] Fix README.md links http -> https пре 2 година
analysis_options.yaml 075ed81426 [flutter] Initial FFI plugin scafold + example. пре 3 година
compile-wasm.sh 86ecf4927f [flutter] Include spine-cpp sources in package пре 2 година
ffigen.yaml de030c8e8c [flutter] Fix linter warnings and errors пре 2 година
pubspec.yaml f28f25da47 [flutter] Change package name to spine_flutter пре 2 година
setup.sh 5c9c204fe5 [flutter] Fix Windows/Linux build пре 3 година

README.md

spine-flutter

The spine-godot runtime provides functionality to load, manipulate and render Spine skeletal animation data using Flutter. spine-flutter is based on spine-cpp and supports desktop and mobile Flutter deployment targets. spine-flutter does not support Flutter's web deployment target.

See the spine-flutter documentation for in-depth information.

Licensing

You are welcome to evaluate the Spine Runtimes and the examples we provide in this repository free of charge.

You can integrate the Spine Runtimes into your software free of charge, but users of your software must have their own Spine license. Please make your users aware of this requirement! This option is often chosen by those making development tools, such as an SDK, game toolkit, or software library.

In order to distribute your software containing the Spine Runtimes to others that don't have a Spine license, you need a Spine license at the time of integration. Then you can distribute your software containing the Spine Runtimes however you like, provided others don't modify it or use it to create new software. If others want to do that, they'll need their own Spine license.

For the official legal terms governing the Spine Runtimes, please read the Spine Runtimes License Agreement and Section 2 of the Spine Editor License Agreement.

Spine version

spine-flutter works with data exported from Spine 4.1.xx.

spine-flutter supports all Spine features, except two-color tinting and the screen blend mode.

Supported platforms

The spine-flutter runtime works on desktop, mobile and web. Web deployment requires canvaskit, which will add about 2mb of dependencies to your web deployment. You can compile your app for web with Canvaskit like this:

flutter build web --web-renderer canvaskit

Setup

TBD

Example

The example in this repository is directly depending on the spine-flutter sources. The sources include C++ code (spine-cpp) which needs to be compiled. To run the example project, install the Flutter SDK, then run flutter doctor` which will instruct you what other dependencies to install.

Once installed, run the setup.sh script in the spine-flutter folder. This will copy spine-cpp to the appropriate locations.

You can then open spine-flutter in an IDE or editor of your choice that supports Flutter, like IntelliJ IDEA/Android Studio or Visual Studio Code to inspect and run the example. Alternatively, you can run the example from the command line.