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

Animation doesn't show in release #145

Closed
Fethi-Hamdani opened this issue Sep 1, 2019 · 7 comments
Closed

Animation doesn't show in release #145

Fethi-Hamdani opened this issue Sep 1, 2019 · 7 comments

Comments

@Fethi-Hamdani
Copy link

i have made an animation on 2dimensions and i have use an image on it, when i run my app on debug everything works fine but when i build the app and install it to my phone, the animation never show like the file doesn't exist at all even its space isn't reserved like it never existed.
any help!!

@umberto-sonnino
Copy link
Contributor

Can you provide any more details? Flare File, Flare-Flutter version, your code?

@Fethi-Hamdani
Copy link
Author

alright just a second

@Fethi-Hamdani
Copy link
Author

Fethi-Hamdani commented Sep 2, 2019

flare file : https://www.2dimensions.com/a/Fethi/files/flare/balls
flare_flutter: ^1.5.7

code:```

          GestureDetector(
              onTap:count,
                            child: Container(
                                height: height*0.45,                
                                child:FlareActor('assets/animations/Balls.flr',alignment: Alignment.center, animation:animation,fit: BoxFit.contain,callback:(t){setState(() {
                                      animation = '';
                                }); } ,) ?? Text('Animation'),
                            ),
            ),

@Fethi-Hamdani
Copy link
Author

the animation work as expected on debug mode but is doesn't show at all in release

@luigi-rosso
Copy link
Contributor

Hey @Fethi1, sorry you're having trouble here. This sounds a lot like an issue we used to have with an older build of Flutter. Sorry for piling on more questions, but which Flutter version are you using? Could you try a different channel (stable, dev, master) to see if you see different results? We've tried on a few different devices here and cannot replicate the problem (we see it in release).

@Fethi-Hamdani
Copy link
Author

sorry for the late replay guys the problem wasn't related to Flare i was using a variable that stores the height of the device MediaQuerry.of(context).size.height and at release like it takes one more state refresh to be applied so it was always set to 0 that's why the animation never show up,i noticed this on a past project and i thought it would be solved after updates.
anyway thanks guys for everything you are doing a great job really.

@luigi-rosso
Copy link
Contributor

Glad to hear you were able to fix this! I'm closing the issue for now, but please reopen if you think there's something we can help you with.

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