luckywheel

Last updated:

0 purchases

luckywheel Image
luckywheel Images
Add to Cart

Description:

luckywheel

Easier to create your Lucky Wheel!
Getting Started #
To use this plugin, add luckywheel as a dependency in your pubspec.yaml file.
See the example to get started quickly. To generate the platform folders run:
flutter create .
copied to clipboard
in the example folder.
To begin you need to instantiate a LuckyWheelController variable and pass in a controller argument of LuckyWheel widget.
LuckyWheelController _wheelController = LuckyWheelController(
vsync: this,
totalParts: 8,
onRotationEnd: (idx) {
_result.value = idx;
},
);
copied to clipboard
After that, you can easily use the LuckyWheel Widget with the code below.
LuckyWheel(
controller: _wheelController,
onResult: (result) {
_result.value = result;
},
child: const SpinningWidget(width: 300, height: 300, totalParts: 8),
// child: Image.asset('images/wheel.png', width: 300, height: 300),
),
copied to clipboard


Enjoy the Lucky Wheel. #

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.