FButtonContentStyle.inherit constructor
FButtonContentStyle.inherit({
- required FTypography typography,
- required Color enabled,
- required Color disabled,
Creates a FButtonContentStyle that inherits its properties.
Implementation
FButtonContentStyle.inherit({required FTypography typography, required Color enabled, required Color disabled})
: this(
textStyle: FWidgetStateMap({
WidgetState.disabled: typography.base.copyWith(color: disabled, fontWeight: FontWeight.w500, height: 1),
WidgetState.any: typography.base.copyWith(color: enabled, fontWeight: FontWeight.w500, height: 1),
}),
iconStyle: FWidgetStateMap({
WidgetState.disabled: IconThemeData(color: disabled, size: 20),
WidgetState.any: IconThemeData(color: enabled, size: 20),
}),
);