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

A fully customizable, draggable, and animated switch featuring multiple options and a smooth loading animation.

example/example.md

Simple lock/unlock switch with animations #

Creativity is the power to connect the seemingly unconnected.

BetterSwitch(
    withIcons: true,
    iconOnThumb: true,
    withIconAnimation: true,
    activeIconColor: Colors.red,
    activeColor: Colors.red,
    inactiveIconColor: Colors.green,
    inactiveColor: Colors.green,
    activeIcon: Icons.lock,
    inactiveIcon: Icons.lock_open,
    shadowColor: Colors.grey.withAlpha(150),
    elevation: 6,
    value: value,
    onChanged: (v) {
        value = v;
        setState(() {});
    },
),

Simple light/dark mode switch with animations #

Innovation begins where creativity meets curiosity.

BetterSwitch(
    withIcons: true,
    withIconAnimation: true,
    activeColor: Colors.grey.shade900,
    activeIcon: Icons.brightness_2,
    inactiveIcon: Icons.sunny,
    shadowColor: Colors.grey.withAlpha(150),
    elevation: 6,
    value: value,
    onChanged: (v) {
        value = v;
        setState(() {});
    },
),
3
likes
160
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

A fully customizable, draggable, and animated switch featuring multiple options and a smooth loading animation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on animated_icon_switch