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

Expose option to configure package for FlareActor #245

Open
IchordeDionysos opened this issue Apr 6, 2020 · 4 comments
Open

Expose option to configure package for FlareActor #245

IchordeDionysos opened this issue Apr 6, 2020 · 4 comments

Comments

@IchordeDionysos
Copy link

We should be able to set the package of an asset.

We are able to do this, for built-in Widgets, like (Image.asset) and external libraries, like (SvgPicture.asset).

We should also be able to use it for Flare.

Due to our usage of Add-to-App and custom test runner for the Flutter part, we have to load the assets from a package and can't load them from the app's assets.

@creativecreatorormaybenot
Copy link

creativecreatorormaybenot commented Apr 6, 2020

The package parameter is only a convenience function (see frame, AssetImage as an example). This means that the following two setups are equal:

Image.asset(
  'assets/image.png',
  package: 'some_package',
)
// same as:
Image.asset(
  'packages/some_package/assets/image.png',
)

Thus, you can do the following:

FlareActor(
  'packages/some_package/assets/animation.flr',
)

At least, until #246 is merged.

🙃

@littleGnAl
Copy link

Any update on this?

@creativecreatorormaybenot

@littleGnAl You can use a Git dependency with ref d7311fa5d885aa091f5da7cb8a4e2372eb1deb08 for now.

@littleGnAl
Copy link

@creativecreatorormaybenot Thanks!

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 a pull request may close this issue.

3 participants