flutter_switch_2_3_states 0.0.4 copy "flutter_switch_2_3_states: ^0.0.4" to clipboard
flutter_switch_2_3_states: ^0.0.4 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: true,
                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);                
                },
              ),

Demo #

Demo

Contributions #

If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.

Licence #

MIT

5
likes
0
pub points
40%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cupertino_icons, dart_style, flutter

More

Packages that depend on flutter_switch_2_3_states