flutter_group_button 2.0.0 copy "flutter_group_button: ^2.0.0" to clipboard
flutter_group_button: ^2.0.0 copied to clipboard

discontinued
outdated

A flutter package whitch contains grouped buttons like radio buttons

flutter_group_button #

A flutter package which contains basics grouped buttons like radio buttons and checkboxes

VERSION #

[2.0.0]

Table of content #

Getting start #

To use this package, add flutter_group_button^[version] as a dependency in your pubspec.yaml file

dependencies:
  flutter_group_button: ^1.0.1

Fast Overview #

Make sure that dependencie is add to your pubsec.yaml file.

RadioGroup Overview #

    RadioGroup(
                  children: [
                    Text("Choice 1"),
                    Text("Choice 2"),
                    Text("Choice 3")
                  ],
                    /// no default selected item
                  defaultSelectedItem: -1,
                  onSelectionChanged: (selection) {
                    /// print the index of the selected item
                    print(selection);
                  })

CheckBoxGroup Overview #

    CheckboxGroup(
                  child: {
                    Text("Choice 1"): false,
                    Text("Choice 2"): true,
                    Text("Choice 3"): false
                  },
                  ///  
                  onNewChecked: (l) {
                    /// print a list of the checked item name
                    print(l);
                  })
2
likes
80
pub points
61%
popularity

Publisher

unverified uploader

A flutter package whitch contains grouped buttons like radio buttons

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_group_button