roulette_widget 1.2.0 copy "roulette_widget: ^1.2.0" to clipboard
roulette_widget: ^1.2.0 copied to clipboard

outdated

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!');
    }
),
1
likes
0
points
7
downloads

Publisher

unverified uploader

Weekly Downloads

A simple customizable roulette widget that you only have to pass the options to be showed.

Homepage

License

unknown (license)

Dependencies

animate_do, flutter

More

Packages that depend on roulette_widget