Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional package parameter to RiveAnimation.asset constructor #366

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tozu
Copy link

@tozu tozu commented Mar 11, 2024

The RiveAnimation.asset constructor assumes that all animations are located in the Flutter app's assets-folder.

It does not provide an way to specify an optional package name that holds and provides animations in its assets-folder.

With this PR the RiveAnimation.asset constructor usage would be analog to Flutter's Image.asset constructor.

The implementation of adding the optional package-path is accomplished in similar fashion (see Image.asset source-code here)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant