FCardStyle.inherit constructor

FCardStyle.inherit({
  1. required FColors colors,
  2. required FTypography typography,
  3. 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: Border.all(color: colors.border),
        borderRadius: style.borderRadius,
        color: colors.background,
      ),
      contentStyle: FCardContentStyle(
        titleTextStyle: typography.xl2.copyWith(fontWeight: FontWeight.w600, color: colors.foreground, height: 1.5),
        subtitleTextStyle: typography.sm.copyWith(color: colors.mutedForeground),
      ),
    );