-
Notifications
You must be signed in to change notification settings - Fork 476
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
Initializing a FlareActor from different sources #16
Labels
enhancement
New feature or request
Comments
This is dead on. We definitely want to support more loading paths, we just haven't made a nice API for them yet. The network load is a big one for us as loading directly from your source file on 2Dimensions.com is a feature we plan to support soon. |
Open
Any updates on this feature? |
Try this:
Usage:
|
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now a
FlareActor
can be initialized only with a path of a file from the rootBundle.I think it would be really useful to support a few other loading modes (e.g. network, string, bytes, ...)
I saw that the
FlutterActor
is the thing that actually is being loaded async. one possibile approach is to have a constructor with the following signatureThe onCancel function would be useful in order to abort a potentially long running loading operation (for example from the network) if the render object has been disposed in the meantime.
The text was updated successfully, but these errors were encountered: