roulette_widget 1.3.0 copy "roulette_widget: ^1.3.0" to clipboard
roulette_widget: ^1.3.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!');
    },
    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
),
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
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

animate_do, flutter

More

Packages that depend on roulette_widget