FItemStyle.inherit constructor
FItemStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
Creates a FTileGroupStyle that inherits from the given arguments.
Implementation
FItemStyle.inherit({required FColors colors, required FTypography typography, required FStyle style})
: this(
backgroundColor: FWidgetStateMap({
WidgetState.disabled: colors.disable(colors.secondary),
WidgetState.any: colors.background,
}),
decoration: FWidgetStateMap({
WidgetState.disabled: BoxDecoration(
color: colors.disable(colors.secondary),
borderRadius: style.borderRadius,
),
WidgetState.hovered | WidgetState.pressed: BoxDecoration(
color: colors.secondary,
borderRadius: style.borderRadius,
),
WidgetState.any: BoxDecoration(color: colors.background, borderRadius: style.borderRadius),
}),
contentStyle: FItemContentStyle.inherit(colors: colors, typography: typography),
rawItemContentStyle: FRawItemContentStyle.inherit(colors: colors, typography: typography),
tappableStyle: style.tappableStyle.copyWith(
bounceTween: FTappableStyle.noBounceTween,
pressedEnterDuration: Duration.zero,
pressedExitDuration: const Duration(milliseconds: 25),
),
focusedOutlineStyle: style.focusedOutlineStyle,
);