crea_radio_button 0.1.2 copy "crea_radio_button: ^0.1.2" to clipboard
crea_radio_button: ^0.1.2 copied to clipboard

A simple radio button group, that allow to choose only one option, but can have any amount of elements. Allows rectangular and round buttons, vertical and horizontal.

A package to create simple radio buttons.

Features #

Render a radio button group:

  • with any number of buttons
  • vertical or horizontal
  • square or round

Upcoming features #

  • pass Object as an option

Limitations #

Currently only supports String as value and button label. An option for RadioGroup is passe via class RadioOption.

Getting started #

To use this plugin, add crea_radio_button as a dependency in your pubspec.yaml file.

Usage #

String radioButtonInput = "";

RadioButtonGroup(
                      vertical: true,
                      options: [
                        RadioOption("1", "1"),
                        RadioOption("2", "2"),
                        RadioOption("3", "3")
                      ],
                      buttonHeight: 50,
                      buttonWidth: 50,
                      defaultIdx: defaultRadioIdx,
                      callback: (val) {
                        setState(() {
                          radioButtonInput = val.text;
                        });
                      });


Example #

alt text

Additional information #

Contribute here: https://github.com/dutkaD/crea_radio

9
likes
0
pub points
59%
popularity

Publisher

unverified uploader

A simple radio button group, that allow to choose only one option, but can have any amount of elements. Allows rectangular and round buttons, vertical and horizontal.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on crea_radio_button