GFRadioListTile<T> constructor
const
GFRadioListTile<T> ({
- Key? key,
- required T value,
- required T groupValue,
- required ValueChanged? onChanged,
- double size = GFSize.SMALL,
- GFRadioType type = GFRadioType.basic,
- Color radioColor = GFColors.SUCCESS,
- Color activeBgColor = GFColors.WHITE,
- Color inactiveBgColor = GFColors.WHITE,
- Color activeBorderColor = GFColors.DARK,
- Color inactiveBorderColor = GFColors.DARK,
- GFPosition position = GFPosition.end,
- Widget activeIcon = const Icon(Icons.check, size: 20, color: GFColors.DARK),
- Widget? inactiveIcon,
- Color customBgColor = GFColors.SUCCESS,
- bool autofocus = false,
- FocusNode? focusNode,
- bool toggleable = false,
- String? titleText,
- String? subTitleText,
- Color? color,
- Widget? avatar,
- Widget? title,
- Widget? subTitle,
- Widget? description,
- Widget? icon,
- EdgeInsets padding = const EdgeInsets.all(8),
- EdgeInsets margin = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
- bool enabled = true,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- bool selected = false,
- Color? focusColor,
- Color? hoverColor,
GFRadioListTile is a list title of with GFRadio in it.
Implementation
const GFRadioListTile({
Key? key,
required this.value,
required this.groupValue,
required this.onChanged,
this.size = GFSize.SMALL,
this.type = GFRadioType.basic,
this.radioColor = GFColors.SUCCESS,
this.activeBgColor = GFColors.WHITE,
this.inactiveBgColor = GFColors.WHITE,
this.activeBorderColor = GFColors.DARK,
this.inactiveBorderColor = GFColors.DARK,
this.position = GFPosition.end,
this.activeIcon = const Icon(
Icons.check,
size: 20,
color: GFColors.DARK,
),
this.inactiveIcon,
this.customBgColor = GFColors.SUCCESS,
this.autofocus = false,
this.focusNode,
this.toggleable = false,
this.titleText,
this.subTitleText,
this.color,
this.avatar,
this.title,
this.subTitle,
this.description,
this.icon,
this.padding = const EdgeInsets.all(8),
this.margin = const EdgeInsets.symmetric(vertical: 8, horizontal: 16),
this.enabled = true,
this.onTap,
this.onLongPress,
this.selected = false,
this.focusColor,
this.hoverColor,
}) : super(key: key);