Skip to content

Conversation

@lunaticcoding
Copy link

One should never use rootBundle because it cannot be overridden for example during testing. It's better to use DefaultAssetBundle.of(context).

@lunaticcoding
Copy link
Author

@mjtalbot Any update?

@mjtalbot
Copy link
Contributor

@mjtalbot Any update?

thank you for the prod, let me chase this one down

void initState() {
super.initState();
_configure();
WidgetsBinding.instance.addPostFrameCallback((_) => _configure());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the main concern with this PR.

Presumably this pushes the first frame of the animation back a render cycle? I am guessing this is to ensure that the context has been loaded before loadRiveFile is executed?

@lunaticcoding
Copy link
Author

sorry for the late response I'll take a look over the weekend on how this could be avoided :) I already have an idea

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.

2 participants