FRadioStyle.inherit constructor
FRadioStyle.inherit({
- required FColorScheme colorScheme,
- required FStyle style,
Creates a FRadioStyle that inherits its properties from the given parameters.
Implementation
FRadioStyle.inherit({required FColorScheme colorScheme, required FStyle style})
: this(
labelLayoutStyle: FLabelStyles.inherit(style: style).horizontalStyle.layout,
focusedOutlineStyle: FFocusedOutlineStyle(
color: colorScheme.primary,
borderRadius: BorderRadius.circular(100),
),
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.disable(colorScheme.primary),
selectedColor: colorScheme.disable(colorScheme.primary),
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,
),
);