FCardStyle.inherit constructor
FCardStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
- required bool touch,
Creates a FCardStyle that inherits its properties.
Implementation
factory FCardStyle.inherit({
required FColors colors,
required FTypography typography,
required FStyle style,
required bool touch,
}) => FCardStyle(
decoration: ShapeDecoration(
shape: RoundedSuperellipseBorder(
side: BorderSide(color: colors.border, width: style.borderWidth),
borderRadius: style.borderRadius.lg,
),
color: colors.card,
),
titleTextStyle: touch
? typography.display.lg.copyWith(fontWeight: .w500, color: colors.foreground)
: typography.display.md.copyWith(fontWeight: .w500, color: colors.foreground),
subtitleTextStyle: typography.body.sm.copyWith(color: colors.mutedForeground),
);