@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
22import 'package:getwidget/getwidget.dart' ;
33
44class GFRadioListTile <T > extends StatelessWidget {
5+ /// [GFRadioListTile] is a list title of with [GFRadio] in it.
56 const GFRadioListTile ({
67 Key key,
78 @required this .value,
@@ -20,11 +21,7 @@ class GFRadioListTile<T> extends StatelessWidget {
2021 size: 20 ,
2122 color: GFColors .DARK ,
2223 ),
23- this .inactiveIcon = const Icon (
24- Icons .close,
25- size: 20 ,
26- color: GFColors .DARK ,
27- ),
24+ this .inactiveIcon,
2825 this .custombgColor = GFColors .SUCCESS ,
2926 this .autofocus = false ,
3027 this .focusNode,
@@ -156,8 +153,7 @@ class GFRadioListTile<T> extends StatelessWidget {
156153 /// The value represented by this radio button.
157154 final T value;
158155
159- /// The currently selected value for a group of radio buttons. Radio button is considered selected if its [value] matches the
160- /// [groupValue] .
156+ /// The currently selected value for a group of radio buttons. Radio button is considered selected if its [value] matches the [groupValue] .
161157 final T groupValue;
162158
163159 /// sets the radio value
@@ -168,24 +164,27 @@ class GFRadioListTile<T> extends StatelessWidget {
168164
169165 @override
170166 Widget build (BuildContext context) {
171- GFRadio radio = GFRadio (
172- autofocus: autofocus,
167+ final GFRadio radio = GFRadio (
173168 onChanged: onChanged,
174169 value: value,
175170 groupValue: groupValue,
176171 size: size,
172+ type: type,
173+ radioColor: radioColor,
177174 activebgColor: activebgColor,
178175 inactiveIcon: inactiveIcon,
179176 activeBorderColor: activeBorderColor,
180177 inactivebgColor: inactivebgColor,
181178 activeIcon: activeIcon,
182179 inactiveBorderColor: inactiveBorderColor,
183180 custombgColor: custombgColor,
181+ toggleable: toggleable,
184182 );
185183 return MergeSemantics (
186184 child: GFListTile (
187185 autofocus: autofocus,
188186 enabled: onChanged != null ,
187+ focusNode: focusNode,
189188 onTap: onChanged != null
190189 ? () {
191190 if (toggleable && checked) {
0 commit comments