Skip to main content

C2CRadioThemeData

PropertyDescriptionType
labelThe text displayed next to the radio button.dynamic
labelTextStyleStyle applied to the label text.TextStyle?
checkedWhether the radio button is selected or not.bool
disabledWhether the radio button is disabled or not.bool
onChangedCallback function that is called when the radio button is toggled.void Function(bool)?
errorError message displayed below the radio button.dynamic
errorTextStyleStyle applied to the error message text.TextStyle?
descriptionDescription text displayed below the [label].dynamic
descriptionTextStyleStyle applied to the description text.TextStyle?
errorTextSpacingSpacing between the error message and the radio button.double?
labelSpacingLeftLeft spacing applied to the label text.double?
backgroundColorBackground color of the radio button.Color?
borderSideBorder style applied to the radio button.BorderSide?
checkColorColor of the check mark inside the radio button.Color?
activeBackgroundColorBackground color of the radio button when it is selected.Color?
activeBorderSideBorder style applied to the radio button when it is selected.BorderSide?
disabledCheckColorColor of the check mark inside the radio button when it is disabled.Color?
disabledBackgroundColorBackground color of the radio button when it is disabled.Color?
disabledBorderSideBorder style applied to the radio button when it is disabled.BorderSide?
errorCheckColorColor of the check mark inside the radio button when there is an error.Color?
errorBackgroundColorBackground color of the radio button when there is an error.Color?
errorBorderSideBorder style applied to the radio button when there is an error.BorderSide?
radioSizeSize of the radio button.double?
errorShadowShadow applied to the radio button when there is an error.BoxShadow?
showErrorMessageDetermines whether the error message is displayed or not.bool