FCardStyle.inherit constructor
FCardStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
Creates a FCardStyle that inherits its properties.
Implementation
FCardStyle.inherit({required FColors colors, required FTypography typography, required FStyle style})
: this(
decoration: BoxDecoration(
border: .all(color: colors.border),
borderRadius: style.borderRadius,
color: colors.background,
),
contentStyle: FCardContentStyle(
titleTextStyle: typography.xl2.copyWith(fontWeight: .w600, color: colors.foreground, height: 1.5),
subtitleTextStyle: typography.sm.copyWith(color: colors.mutedForeground),
),
);