toggle_switch_plus 0.0.3 toggle_switch_plus: ^0.0.3 copied to clipboard
A simple toggle switch widget can be customized with desired width, padding, gap, colors, text, corner radius etc.
A rich but simple toggle switch widget. It can be fully customized with desired width, padding, gap, colors, text, corner radius etc. It also maintains selection state.
Features #
- you can easily get the selected value on => onChanged(value) method
- you can put values and display values differently
Getting started #
- you need to pass values => List
- you will get the selected value in the onChanged(value)
Usage #
- you need to pass values => List
- you will get the selected value in the onChanged(value)
ToggleSwitchPlus(
values: const ['male','female','other'],
labels: const ['Male','Female','Other'],
onChanged: (value) {
debugPrint(value);
},
),
Additional information #
- you can put values and display values that is named as labels differently