Comments (6)
Hi @davidanaya , thank you very much for reply to my issue.
- I think we can start the wheel with specified speed.
- Decelerates is better, so I prefer it.
- In this case, we shouldn't allow user to be able to interact with the wheel through gestures
from flutter-spinning-wheel.
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.
@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.
@davidanaya thanks alot! ๐ I will take a look!
from flutter-spinning-wheel.
Closing the issue as last reply is a month ago.
from flutter-spinning-wheel.
@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)
- Cรณmo evitar que la rueda gire manualmente: Resuelto
- Null-Safety HOT 1
- I tried to implement your in pub.dev null safety is not migrated in your dependency so it is giving error kindly tell me how to fix it. HOT 1
- Target of URI doesn't exist
- Spin with predefined result and priority HOT 1
- How to detect when spinner is stopped HOT 3
- How to start the spinner when button is clicked? HOT 6
- Wheel can be spun manually to a prize HOT 2
- How to Spin with predefined result HOT 3
- How to prevent the wheel from spinning manually HOT 4
- Make wheel larger than screen and clickable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-spinning-wheel.