Coder Social home page Coder Social logo

Comments (14)

psovit avatar psovit commented on July 21, 2024 1

yep, just navigating across different tab views and coming back to the initial image is crashing the image elements.

from flare-flutter.

psovit avatar psovit commented on July 21, 2024 1

Hi @umberto-sonnino , the comment section of github issues didn't allow me to upload the Flare files (extension not supported here) so I have created a different repo. It has the files that you are looking for.
https://github.com/psovit/flare_issue_samples

from flare-flutter.

umberto-sonnino avatar umberto-sonnino commented on July 21, 2024 1

Yes, we're keeping an eye out for this as well, thanks a lot for the reports!

from flare-flutter.

luigi-rosso avatar luigi-rosso commented on July 21, 2024

Thanks for reporting this, I think #51 is related.

Do you have any example code exhibiting the behavior? In the meantime I'll do some test by manually reloading the file via a button to see if I can repro the issue.

from flare-flutter.

luigi-rosso avatar luigi-rosso commented on July 21, 2024

I just pushed package 1.3.1 with a fix, let me know if this solves the issue for you!

from flare-flutter.

uggyk avatar uggyk commented on July 21, 2024

would you kindly send me the .flr file that you exported? even after upgrading I can't seem to make it work.

from flare-flutter.

uggyk avatar uggyk commented on July 21, 2024

I feel like it is not from the flutter_flare package. I think it is from the exporting of the file itself from the 2dimensions flare website.

from flare-flutter.

luigi-rosso avatar luigi-rosso commented on July 21, 2024

The file seems to be fine, the issue was that in some cases the animation from a previously loaded file would be used on the newly loaded file and things wouldn't necessarily align. After changing the package did you call flutter pub get?

from flare-flutter.

psovit avatar psovit commented on July 21, 2024

Thank you @luigi-rosso for such a quick turn-around. Looks like flare_flutter: ^1.3.2 has resolved the issue as the images are no longer breaking. Appreciate it!

from flare-flutter.

psovit avatar psovit commented on July 21, 2024

Looks like the issue hasn't resolved yet as we came across the issue again!

from flare-flutter.

luigi-rosso avatar luigi-rosso commented on July 21, 2024

Shoot! Is it the same workflow? After a second load the image is corrupt, or is the flow different in any way?

from flare-flutter.

umberto-sonnino avatar umberto-sonnino commented on July 21, 2024

Hey @psovit could you share the Flare file that's affected?

from flare-flutter.

umberto-sonnino avatar umberto-sonnino commented on July 21, 2024

I've tried setting up something similar to what you mentioned: a TabBar with 3 different views, each with one of the files you shared. Everything seems to be working fine over here, though: all the elements retain their drawables.
Could you share any other detail on your setup?

Also - just to make sure - have you tried running flutter clean and flutter packages get on the app you're trying to build, and running it again?

from flare-flutter.

psovit avatar psovit commented on July 21, 2024

I am not sure when exactly the issue happens as it happens very randomly. I tried to recreate the issue on a separate project but the issue isn't appearing. Maybe flutter clean and flutter packages get was what was needed. But I am not sure at this point.

Also, we have cut down on the usage of Flare files. Initially, we had every SVG files (from icons to artworks) exported as Flare files. Now, we have replaced Flare files with PNGs for icons and only few artworks are still used as Flares.

I guess I will re-open the issue when I can reproduce it.

Thanks!

from flare-flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.