FRadioStyle.inherit constructor
FRadioStyle.inherit({
- required FColorScheme colorScheme,
- required FStyle style,
Creates a FRadioStyle that inherits its properties from the given parameters.
Implementation
factory FRadioStyle.inherit({required FColorScheme colorScheme, required FStyle style}) => FRadioStyle(
labelLayoutStyle: FLabelStyles.inherit(style: style).horizontal.layout,
enabledStyle: FRadioStateStyle(
labelTextStyle: style.enabledFormFieldStyle.labelTextStyle,
descriptionTextStyle: style.enabledFormFieldStyle.descriptionTextStyle,
borderColor: colorScheme.primary,
selectedColor: colorScheme.primary,
backgroundColor: colorScheme.background,
),
disabledStyle: FRadioStateStyle(
labelTextStyle: style.disabledFormFieldStyle.labelTextStyle,
descriptionTextStyle: style.disabledFormFieldStyle.descriptionTextStyle,
borderColor: colorScheme.primary.withOpacity(0.5),
selectedColor: colorScheme.primary.withOpacity(0.5),
backgroundColor: colorScheme.background,
),
errorStyle: FRadioErrorStyle(
labelTextStyle: style.errorFormFieldStyle.labelTextStyle,
descriptionTextStyle: style.errorFormFieldStyle.descriptionTextStyle,
errorTextStyle: style.errorFormFieldStyle.errorTextStyle,
borderColor: colorScheme.error,
selectedColor: colorScheme.error,
backgroundColor: colorScheme.background,
),
);