rive_native 0.0.9
rive_native: ^0.0.9 copied to clipboard
Rive's native runtime and renderer for Flutter.
0.0.9 #
0.0.8 #
- Expose
width
andheight
getters forImageAsset
. See issue 501. This is only exposed to support older workflows. We now recommend using Data Binding images. You can also alternatively expose the width and height of the component through data binding and listen to changes.
Fixes #
- Fixed a memory leak when listening to Rive Events that had Audio events. See issue 494
- Fixed a memory issue on WASM where large .riv files could invalidate our backing TypedArray views. This fix recreates these views if they are detached. See: https://github.com/emscripten-core/emscripten/issues/7294
0.0.7 #
- Updates the Rive C++ runtime and renderer for the latest bug fixes and performance improvements.
Fixes #
- Fixed running out of GL contexts by recycling HTML canvases
- Fixed an issue on Web (Rive Renderer) where certain graphics would settle (pause) too soon when exiting a settled state.
- Fixed an issue where the state machine would settle/pause too soon when resizing the widget (or native window) and when re entering from a backgrounded state (Android). See issue 496
Build & Platform Updates #
- Linux: Initial Linux support (Flutter renderer).
- Fixed testing libraries not available when using
rive_native
as a Pub package.rive_native
now copies the native libraries to the local appbuild
directory.
0.0.6 #
- Updates the Rive C++ runtime and renderer for the latest bug fixes and performance improvements.
Fixes #
- A dual mutex deadlock on iOS/macOS during window/texture resizing under certain conditions.
- An issue where the Rive Renderer requests a repaint on a disposed render object.
0.0.4 #
- Updates the Rive C++ runtime and renderer for the latest bug fixes and performance improvements.
New Features #
- Data binding artboards:
You can now data bind artboards and update them programatically. Access a
ViewModelInstanceArtboard
by its path usingartboard(String path)
on a view model instance. To update, set thevalue
by passing in aBindableArtboard
. Create aBindableArtboard
from a Rive file:riveFile.artboardToBind(String name)
See the runtime docs for data binding artboards. - Detect Rive Renderer support:
You can now detect Rive Renderer support by doing
Factory.rive.isSupported
afterRiveNative.init()
.
Fixes #
- Fixed a crash when using the Flutter renderer.
- Allow Rive Native to still work even if the Rive Renderer context does not initialize.
0.0.3 #
- Updates the Rive C++ runtime and renderer for the latest bug fixes and performance improvements.
New Features #
- Data binding lists:
You can now get a list property on a
ViewModelInstance
by its path usinglist(String path)
. On this property you can perform common list operations, such as,add
/remove
/insert
. See Editor and runtime docs for data binding lists.
Fixes #
- Fixed a crash on Android when backgrounding the app using the Rive Renderer. See issue 481.
Build & Platform Updates #
- Android: add
x86
/x86_64
arch support. - Android: support 16 KB page sizes, see issue 479.
- Android: bump
compileSdk
from 34 to 35.
0.0.2 #
- Updates the Rive C++ runtime and renderer for the latest bug fixes and performance improvements.
New Features #
- Data binding images:
You can now get an image property on aViewModelInstance
by its path usingimage(String path)
, and set itsvalue
.- Use
Factory.rive.decodeImage
orFactory.flutter.decodeImage
to create aRenderImage
. - Set the
value
tonull
to clear the image and free up resources.
- Use
- Exposes the
name
string getter onArtboad
,Animation
, andStateMachine
Fixes #
- Fixed a build issue when creating an Android AAR module.
rive_native
now accounts for theplugins_build_output
directory when running the build scripts. - Fixed an issue where Pub would remove a required Makefile during package publishing. The Makefile is necessary for manually building
rive_native
libraries usingdart run rive_native:setup --build
.
0.0.1 #
- Updates the Rive C++ runtime and renderer for the latest bug fixes and performance improvements.
Fixes #
- Fixed a build issue when building directly from Xcode for iOS and macOS.
- Various rendering and runtime fixes.
0.0.1-dev.8 #
New Features #
- Data binding 🚀. See the data binding documentation and the updated example app for more info.
Fixes #
- Platform dependent CMakeList.txt instructions. Fixes Android and Windows rive_native setup for certain Windows environments. See issue 471
- Support for Workspaces in
rive_native:setup
, see issue 467. Thanks tpucci for the contribution. - Textures now use pre-multiplied alpha, which may fix dark edges around alpha textures ad7c295
- Fixed an OpenGL buffer race condition b001b21
0.0.1-dev.7 #
New Features #
- Initial support for text follow path (early access)
Fixes #
- Lates Rive Runtime and Renderer fixes and improvements
- Fixes rendering glitches on certain device hardware
- Android and Windows building: Fixed executing the download scripts from the wrong path in
CMakeLists.txt
. See issue 460, Dart does not allow executingpub
commands from the pub cache directory. - iOS and macOS build flavor support: Fixed an issue where rive_native could not build when using Flutter flavors, see issue 460.
- Reduce Pub package size and fix building: Reduce dependencies included when publishing to Pub, and fix manual library building
0.0.1-dev.6 #
New Features #
- Android Support: Added support for Android (arm, arm64) with Rive Renderer and Flutter Renderer (Skia/Impeller).
- iOS Emulator Support: Added support for running on iOS emulators.
- Layout Support: Introduced Layout support.
- Scrolling Support: Added Scrolling support.
- N-Slicing Support: Added N-Slicing support.
- Feathering: Added support for Feathering.
- Nested Inputs: Added nested inputs accessible via the optional
path
parameter inStateMachine.number
,StateMachine.boolean
, andStateMachine.trigger
. - Nested Text Runs: Added support for nested text runs, accessible via the optional
path
parameter inartboard.getText(textRunName, path: path)
. - Text Run Setters: Added setters for text runs (including nested text runs) using
artboard.setText(textRunName, updatedValue, path: path)
. - Rive Events: Added support for Rive Events.
- Out-of-Band Assets: Added support for out-of-band assets.
- Procedural Rendering: Introduced
RiveProceduralRenderingWidget
andProceduralPainter
.
Fixes #
- Windows Build Scripts: Fixed build scripts for Windows.
- Latest Rive C++ runtime: Updates to the latest core runtime with various improvements and fixes.
Breaking Changes #
- StateMachinePainter:
StateMachinePainter
andRivePainter.stateMachine
no longer require astateMachineName
parameter. It is now optional. Ifnull
, the default state machine will be used. - Rive Widgets:
RiveArtboardWidget
andRiveFileWidget
now require aRivePainter
.
0.0.1-dev.5 #
- Initial prerelease 🎉