@@ -23,27 +23,39 @@ class _IndexState extends State<Index> {
2323 Widget build (BuildContext context) {
2424 return Scaffold (
2525 appBar: AppBar (
26- title: Text ('Radio ' ),
26+ title: Text ('RadioListTile ' ),
2727 ),
2828 body: Column (
2929 children: < Widget > [
30- Radio (
30+ RadioListTile (
3131 value: 0 ,
3232 groupValue: _radioValue,
3333 onChanged: _handleRadioValueChanged,
3434 activeColor: Theme .of (context).primaryColor,
35+ title: Text ('RadioListTile A' ),
36+ subtitle: Text ('Description' ),
37+ secondary: Icon (Icons .filter_1),
38+ selected: _radioValue == 0 ,
3539 ),
36- Radio (
40+ RadioListTile (
3741 value: 1 ,
3842 groupValue: _radioValue,
3943 onChanged: _handleRadioValueChanged,
4044 activeColor: Theme .of (context).primaryColor,
45+ title: Text ('RadioListTile B' ),
46+ subtitle: Text ('Description' ),
47+ secondary: Icon (Icons .filter_2),
48+ selected: _radioValue == 1 ,
4149 ),
42- Radio (
50+ RadioListTile (
4351 value: 2 ,
4452 groupValue: _radioValue,
4553 onChanged: _handleRadioValueChanged,
4654 activeColor: Theme .of (context).primaryColor,
55+ title: Text ('RadioListTile C' ),
56+ subtitle: Text ('Description' ),
57+ secondary: Icon (Icons .filter_3),
58+ selected: _radioValue == 2 ,
4759 ),
4860 ],
4961 ),
0 commit comments