lite_rolling_switch 0.0.1 copy "lite_rolling_switch: ^0.0.1" to clipboard
lite_rolling_switch: ^0.0.1 copied to clipboard

outdated

A new Flutter package project.

lite_rolling_switch #

Full customizable rolling switch widget for flutter apps based on Pedro Massango's 'crazy-switch' widget https://github.com/pedromassango/crazy-switch

Preview #

Image preview

Example #


LiteRollingSwitch(
    //initial value
    value: true,
    textOn: 'disponible',
    textOff: 'ocupado',
    colorOn: Colors.greenAccent[700],
    colorOff: Colors.redAccent[700],
    iconOn: Icons.done,
    iconOff: Icons.remove_circle_outline,
    textSize: 16.0,
    mainAction: () {
      //it will work on onTap, onDoubleTap
      //& onDrag events.
      print('Something here!');
    },
    onChanged: (bool state) {
      //Use it to manage the different states
      print('Current State of SWITCH IS: $state');
    },
),

268
likes
0
pub points
95%
popularity

Publisher

unverified uploader

A new Flutter package project.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on lite_rolling_switch