custom_switch_widget

Creator: coderz1093

Last updated:

0 purchases

custom_switch_widget Image
custom_switch_widget Images

Languages

Categories

Add to Cart

Description:

custom switch widget

CustomSwitchWidget #
dependencies:
...
custom_switch_widget: ^0.0.1
copied to clipboard
final CustomSwitchController _controller = CustomSwitchController();

CustomSwitchWidget(
controller: _controller,
onChange: (value) {},
)
copied to clipboard

Enable switch

_controller.enable();
copied to clipboard

Disable switch

_controller.disable();
copied to clipboard



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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.