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

Flare animations not visible in release/profile build mode #92

Closed
anisalibegic opened this issue May 14, 2019 · 12 comments
Closed

Flare animations not visible in release/profile build mode #92

anisalibegic opened this issue May 14, 2019 · 12 comments

Comments

@anisalibegic
Copy link

Hi all,

I'm having a problem where some Flare animations are invisible in release or profile mode.

This one is visible
This one is invisible

I really don't know what to do in this situation. Maybe the squares loader animations is wrong in some way?


I'm using flare_flutter: ^1.5.0.

[√] Flutter (Channel stable, v1.5.4-hotfix.2, on Microsoft Windows [Version 10.0.17763.475], locale en-GB)
• Flutter version 1.5.4-hotfix.2 at C:\Users\Anis\Programs\flutter
• Framework revision 7a4c33425d (2 weeks ago), 2019-04-29 11:05:24 -0700
• Engine revision 52c7a1e849
• Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\Users\Anis\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.

[√] Android Studio (version 3.4)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 35.3.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] IntelliJ IDEA Community Edition (version 2019.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2.1
• Flutter plugin version 35.3.3
• Dart plugin version 191.7141.49

[√] VS Code, 64-bit edition (version 1.33.1)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.0.0

[√] Connected device (1 available)
• ANE LX1 • 9WV4C19131006232 • android-arm64 • Android 8.0.0 (API 26)

Anybody knows why this occurs?

@luigi-rosso
Copy link
Contributor

It's an issue with v1.5.4-hotfix.2, if you upgrade to something newer you'll see it's gone. It's unfortunate that it's the current stable build.

@anisalibegic
Copy link
Author

I tried changing to master channel but there was a breaking change flutter/flutter#31962 and half of my packages are failing to build... any other way?

@luigi-rosso
Copy link
Contributor

There's a breaking change on both dev and master with one of the APIs that Flare uses. Unfortunately we have to keep the version on pub compatible with stable. To use a more bleeding edge version, point your pubspec to our github:

flare_flutter:
  git: 
    url: git://github.com/2d-inc/Flare-Flutter.git
    ref: dev
    path: flare_flutter

Just be aware that dev is a moving target, if you want to be keep it compatible with a specific version of master you are on, reference the current dev tree instead:

flare_flutter:
  git: 
    url: git://github.com/2d-inc/Flare-Flutter.git
    ref: c51192dec50dec034d121f6aad7d2e8733c7e279
    path: flare_flutter

@luigi-rosso
Copy link
Contributor

That'll allow Flare to work with newer Flutter versions, you may need to do something similar for the other packages.

@anisalibegic
Copy link
Author

anisalibegic commented May 14, 2019

I got stuck on AndreHaueisen/flushbar#44 (comment) and it prevents me from staying on master channel... Why some of the animations are working correctly and some are not?

@anisalibegic
Copy link
Author

Changed Flutter channel to master and version 1.5.9, changed the source of the flare_flutter to GitHub instead of pub.dev, fixed errors in other packages, successfully built the app... still no animations.

@luigi-rosso
Copy link
Contributor

That's frustrating, sorry for the trouble. Lots of things changed this week so quite a few of them are still settling.

Are you seeing no animations in release/profile or no animations in debug as well?

@anisalibegic
Copy link
Author

I have two animations side by side. The one your brother made and the one I made. When I run my application in the debug mode I can see both animations but in the release/profile mode all I can see is your brother's animation.

@luigi-rosso
Copy link
Contributor

It really sounds like this issue: #87

I thought this had been fixed right after hotfix.2, but it sounds like it's still a problem. It sounds like flutter 1.2.1 with flare_flutter 1.5.0 (from pub) should work together. In the meantime I'll make sure we open an issue with the main flutter repository too.

@annalaufey
Copy link

I'm having the same problem.
I am currently on Flutter version 1.5.4-hotfix.2 and flare_flutter: ^1.5.0 and my animation is not showing in release mode, only in debug mode.

@luigi-rosso
Copy link
Contributor

luigi-rosso commented Jun 20, 2019

Can the people who were able to reproduce this issue please give it a try on the latest flutter master or dev channel? You'll need to point your pubspec to our flare dev:

flare_flutter:
  git: 
    url: git://github.com/2d-inc/Flare-Flutter.git
    ref: dev
    path: flare_flutter

And you'll need to use flutter dev or master:

flutter channel master
flutter upgrade

@anisalibegic
Copy link
Author

anisalibegic commented Jun 21, 2019

Confirmed that animations are working in release/profile mode while using Flutter 1.7.6-pre.41 • channel master and flare_flutter git:dev.

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