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

endAnimation not shown #3

Open
JsonLinesCode opened this issue Apr 9, 2020 · 4 comments
Open

endAnimation not shown #3

JsonLinesCode opened this issue Apr 9, 2020 · 4 comments

Comments

@JsonLinesCode
Copy link

Here is my issue : when I start my application I've made an animation looping during the loading of a future process and another animation when the future has data. So here is my code : (I've replaced my future with a simple delay but it does the same.

return Scaffold(
      backgroundColor: Colors.white,
      body: Center(
          child: FlareLoading(
        until: () => Future.delayed(Duration(seconds: 5)),
        name: 'assets/animations/ynotes.flr',
        loopAnimation: 'Load',
        endAnimation: 'Ended',
        onSuccess: (test) {
          Navigator.of(context).pushReplacement(router(homePage()));
        },
        onError: (__, _) {
          Navigator.of(context).pushReplacement(router(login()));
        },
      )

Unfortunately I can't upload my .flr file, so here is the link https://rive.app/a/modeeeeeeeeern/files/flare/ynotes/embed

@jaumard
Copy link
Owner

jaumard commented Apr 9, 2020

To upload your .flr file just zip it before. I can't export your .flr file as it's read only ;)

But maybe this will work better for you:

return Scaffold(
      backgroundColor: Colors.white,
      body: Center(
          child: FlareLoading(
        until: () => Future.delayed(Duration(seconds: 5)),
        name: 'assets/animations/ynotes.flr',
        startAnimation: 'Load',
        loopAnimation: 'Load',
        endAnimation: 'Ended',
        onSuccess: (test) {
          Navigator.of(context).pushReplacement(router(homePage()));
        },
        onError: (__, _) {
          Navigator.of(context).pushReplacement(router(login()));
        },
      )

Let me know :) maybe I have a bug when only loopAnimation and endAnimation are given. I'll check later

@JsonLinesCode
Copy link
Author

Ok I didn't know :
ynotes.zip
I've tried with the startAnimation but it does exactly the same : the Load animation freezes and I'm redirected to my home page...

@jaumard
Copy link
Owner

jaumard commented Apr 9, 2020

Ok I'll take a look asap then, sorry for that

@3dluis
Copy link

3dluis commented Jul 28, 2020

The same problem, some solution.

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

No branches or pull requests

3 participants