How do I load a RiveAnimation from a File object?Currently only RiveAnimation.network and RiveAnimation.asset is available. But I need to create an animation from a file in my local app folder.
I am using Rive in Flutter apps …
I’ve forked rive-flutter and implemented it myself and created a pull request, all works as expected
ByteData data = await rootBundle.load(file); // Load the RiveFile from the binary data.RiveFile riveFile = RiveFile.import(data);
ByteData data = await rootBundle.load(file);
RiveFile riveFile = RiveFile.import(data);