animated_icon_switch 0.0.1
animated_icon_switch: ^0.0.1 copied to clipboard
A fully customizable, draggable, and animated switch featuring multiple options and a smooth loading animation.
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(() {});
},
),