Skip to content

A simple flutter package to include radio buttons in your app easily.

License

Notifications You must be signed in to change notification settings

srihariash999/animated_radio_buttons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

animated_radio_buttons

A radio button package for flutter. This widget is useful to quickly add a set of radio buttons to your flutter app.

Package page

animated_radio_buttons

Simple Usage

Creating a basic RadioButtons Group

int myVar ;

AnimatedRadioButtons(
            backgroundColor: Colors.yellow[400],
            value: myVar,
            layoutAxis: Axis.horizontal,
            buttonRadius: 40.0,
            items: [
              AnimatedRadioButtonItem(
                  label: "Star Battles",
                  color: Colors.black,
                  fillInColor: Colors.grey),
              AnimatedRadioButtonItem(
                  label: "Star Trek",
                  labelTextStyle: TextStyle(color: Colors.blue),
                  fillInColor: Colors.yellow[400]),
              AnimatedRadioButtonItem(
                  label: "Losers",
                  color: Colors.green,
                  fillInColor: Colors.greenAccent)
            ],
            onChanged: (value) {
              setState(() {
                myVar = value;
              });
            },
          );

Output

About

A simple flutter package to include radio buttons in your app easily.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •