roulette_widget 1.2.0
roulette_widget: ^1.2.0 copied to clipboard
A simple customizable roulette widget that you only have to pass the options to be showed.
Route Transitions #
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!');
}
),