flutter_switch_2_3_states 0.0.2 copy "flutter_switch_2_3_states: ^0.0.2" to clipboard
flutter_switch_2_3_states: ^0.0.2 copied to clipboard

discontinued
outdated

Widget switch with 2 or 3 states and custom icons, values and text

switch 2 or 3 states #

An easy way to implement a switch with 2 or 3 states. In this package you also have the freedom to configure the list of values that will be used on the switch The list of values is dynamic and returns the selected value without having to do the conversion. Example of the list of values:

[false, true]
[false, null, true]
[0, 2.1]
['no', '', 'yes']

Getting Started #

   WidgetSwitch1(
                iconRight: Icons.check,
                initValue: value2,
                width: 200,
                buttonDiameter: 55,
                iconSize: 60,
                ///this is dymamic type list to values user parsed
                values: [false, null, true],
                ///values: [0,1,2],
                ///values: ['0','1','2'],
                ///values: [0,2,1],
                onChange: (x) {
                  print(x);
                  setState(() {
                    value2 = x;
                  });
                },
              ),

##Demo exemple

Licence #

MIT

5
likes
0
pub points
50%
popularity

Publisher

unverified uploader

Widget switch with 2 or 3 states and custom icons, values and text

Homepage

License

unknown (LICENSE)

Dependencies

cupertino_icons, flutter

More

Packages that depend on flutter_switch_2_3_states