switcher 1.0.0
switcher: ^1.0.0 copied to clipboard

A beautiful animated, and personalized switcher widget component.

logo

A animated, beautiful and personalized switcher component.

Based on Eduardo Muñoz's widget lite_rolling_switch

 

Pub Package Buy Me A Coffee

Overview #

A animated and beautiful Switcher

Contributing

Getting Started

In pubspec.yaml:

dependencies:
  switcher: any

See how: #

Using switcherUsing switcherUsing switcherUsing switcherUsing switcherUsing switcherUsing switcherUsing switcher
import 'package:switcher/switcher.dart';

Switcher(
    value: false,
    size: SwitcherSize.large,
    switcherButtonRadius: 50,
    enabledSwitcherButtonRotate: true,
    iconOff: Icons.lock,
    iconOn: Icons.lock_open,
    colorOff: Colors.blueGrey.withOpacity(0.3),
    colorOn: Colors.blue,
    onChanged: (bool state) {
    //
    },
),

 Switcher(
    value: false,
    size: SwitcherSize.large,
    switcherButtonRadius: 50,
    iconOff: null,
    enabledSwitcherButtonRotate: false,
    colorOff: Colors.blueGrey.withOpacity(0.3),
    colorOn: Colors.blue,
    onChanged: (bool state) {
    //
    },
),

Features and bugs #

Please send feature requests and bugs at the issue tracker.

25
likes
120
pub points
71%
popularity

A beautiful animated, and personalized switcher widget component.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on switcher