FButtonCustomStyle.inherit constructor
FButtonCustomStyle.inherit({})
Creates a FButtonCustomStyle that inherits its properties from the given arguments.
Implementation
FButtonCustomStyle.inherit({
required FTypography typography,
required FStyle style,
required Color enabledBoxColor,
required Color enabledHoveredBoxColor,
required Color disabledBoxColor,
required Color enabledContentColor,
required Color disabledContentColor,
}) : this(
enabledBoxDecoration: BoxDecoration(
borderRadius: style.borderRadius,
color: enabledBoxColor,
),
enabledHoverBoxDecoration: BoxDecoration(
borderRadius: style.borderRadius,
color: enabledHoveredBoxColor,
),
disabledBoxDecoration: BoxDecoration(
borderRadius: style.borderRadius,
color: disabledBoxColor,
),
focusedOutlineStyle: style.focusedOutlineStyle,
contentStyle: FButtonContentStyle.inherit(
typography: typography,
enabled: enabledContentColor,
disabled: disabledContentColor,
),
iconContentStyle: FButtonIconContentStyle(
enabledColor: enabledContentColor,
disabledColor: disabledContentColor,
),
spinnerStyle: FButtonSpinnerStyle.inherit(
enabled: enabledContentColor,
disabled: disabledContentColor,
),
);