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

custom_switch_widget

CustomSwitchWidget #

dependencies:
  ...
  custom_switch_widget: ^0.0.1
final CustomSwitchController _controller = CustomSwitchController();

CustomSwitchWidget(
  controller: _controller, 
  onChange: (value) {},
)
  • Enable switch
_controller.enable();
  • Disable switch
_controller.disable();
Fields Description
controller Channel sending the changes to be made
activeColor color the widget when enable
inactiveColor color the widget when disable
pointColor color the point widget
width Helps set the width of the widget. NOTE: only up to 50 px is allowed (width >= 30 && width <= 50)
height Helps set the height of the widget. NOTE: only up to 50 px is allowed (width >= 20 && width <= 50)
borderRadius Sets the edges of the widget
onChange Detects call touch for state change
1
likes
130
points
42
downloads

Publisher

verified publisheredvaldomartins.dev

Weekly Downloads

custom_switch_widget

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on custom_switch_widget