Coder Social home page Coder Social logo

Comments (7)

jaumard avatar jaumard commented on July 21, 2024 2

flare_checkbox 1.0.1 include snapToEnd now 👌

from flare-flutter.

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

That's interesting, and a good point! A heavy way to do this right now is using a custom controller.

For ease of use, I think we might be able to introduce an optional isAnimated (defaults to true) argument that might help. When it is false, the last frame of the current animation(s) is directly applied.

from flare-flutter.

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

I pushed a branch with an example, it's called snap_to_end: https://github.com/2d-inc/Flare-Flutter/tree/snap_to_end

It includes an example that implements this (note it doesn't animate when you open the settings page):
ezgif-1-c0e8e2a09115

Try it out and let me know if it fits your use case. If it does, we can publish an updated package!

from flare-flutter.

jaumard avatar jaumard commented on July 21, 2024

Hi @luigi-rosso thanks for this ! from the GIF look like it does the job great ! let me try this !

from flare-flutter.

jaumard avatar jaumard commented on July 21, 2024

Ok just tested in this branch https://github.com/jaumard/flare_checkbox/tree/bug/noOn look like it work !!! but on hot reload I have a glitch, first it show the first frame, and them jump to the last one. Not a big deal if it's just during hot reload but I wanted to report it anyway :)

Thanks ! let me know when it's released ! I'll update my package for my #FlutterCreate ^^

from flare-flutter.

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

I published this as 1.3.5, I did see the reload issue but that'll require some more fundamental reworking of FlareActor (which I do want to do) such that it applies changes on the current frame, but that'll take a little more time.

from flare-flutter.

jaumard avatar jaumard commented on July 21, 2024

Thanks! I let you decide if you want to close the issue or keep it open for this reworking ;)

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.