Last updated:
0 purchases
roulette widget
Roulette Widget #
A simple customizable roulette widget that you only have to pass the options to be showed.
Getting started #
This package is simple to use, you only need to pass the width of the roulette, the width and height of the indicator and the list of options to be showed.
Usage #
RouletteWidget(
widthRoulette: widthRoulette, // width of the roulette
widthIndicator: widthIndicator, // width of the indicator
heightIndicator: heightIndicator, // height of the indicator
// options to be showed in the roulette, every option should to be of type RouletteElementModel
options: [
RouletteElementModel(text: 'Option 1', color: Colors.red),
RouletteElementModel(text: 'Option 2', color: Colors.blue),
RouletteElementModel(text: 'Option 3', color: Colors.orange),
RouletteElementModel(text: 'Option 4', color: Colors.green),
RouletteElementModel(text: 'Option 5', color: Colors.yellow),
],
// Other actions to do after the tap or drag
otherActions: (){
print('Hello world!');
},
borderWidth: 10, // border's width, this value can be null
borderColor: Colors.red, // border's color, this value can be null
centralWidget: Icon(Icons.user), // a widget to place in the center of the roulette, can be null
widthCentralWidget: 100, // the widget's width
heightCentralWidget 100, // the widget's height
),
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.