Code Monkey home page Code Monkey logo

Comments (6)

nambv avatar nambv commented on August 16, 2024 2

Hi @davidanaya , thank you very much for reply to my issue.

  1. I think we can start the wheel with specified speed.
  2. Decelerates is better, so I prefer it.
  3. In this case, we shouldn't allow user to be able to interact with the wheel through gestures

from flutter-spinning-wheel.

davidanaya avatar davidanaya commented on August 16, 2024

Thanks @nambv
I could do that, but what do you have in mind specifically?
start -- starts the wheel at what speed? random? or does it spins the wheel indefinitely?
stop -- stops the wheel immediately? or just decelerates it?
in this case, do you want the user to be able to interact with the wheel through gestures?

from flutter-spinning-wheel.

davidanaya avatar davidanaya commented on August 16, 2024

@nambv I added a Stream to communicate with the inner widget.
You can see how I use it to trigger the start of the animation in the example for the roulette
https://github.com/davidanaya/flutter-spinning-wheel/blob/master/example/lib/main.dart

You need to provide a double as velocity which roughly goes from 1000 (barely noticeable) to 10000 pixels per second. In the example I generate a random velocity each time and it works pretty well.
double _generateRandomVelocity() => (Random().nextDouble() * 6000) + 2000;

from flutter-spinning-wheel.

nambv avatar nambv commented on August 16, 2024

@davidanaya thanks alot! ๐Ÿ‘ I will take a look!

from flutter-spinning-wheel.

davidanaya avatar davidanaya commented on August 16, 2024

Closing the issue as last reply is a month ago.

from flutter-spinning-wheel.

Renatinaveen avatar Renatinaveen commented on August 16, 2024

@davidanaya @nambv is it possible to control the stopping point when the animation ends? i want to control where the animation stops.

from flutter-spinning-wheel.

Related Issues (12)

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.