FAlertStyles.inherit constructor
FAlertStyles.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
Creates a FAlertStyles that inherits its properties.
Implementation
FAlertStyles.inherit({required FColors colors, required FTypography typography, required FStyle style})
: this(
.from(
FAlertStyle(
iconStyle: IconThemeData(color: colors.foreground, size: 20),
titleTextStyle: typography.base.copyWith(fontWeight: .w500, color: colors.foreground, height: 1.2),
subtitleTextStyle: typography.sm.copyWith(color: colors.mutedForeground),
decoration: BoxDecoration(
border: .all(color: colors.border),
borderRadius: style.borderRadius,
color: colors.card,
),
),
variants: {
[.destructive]: .delta(
iconStyle: .delta(color: colors.destructive),
titleTextStyle: .delta(color: colors.destructive),
subtitleTextStyle: .delta(color: colors.destructive),
),
},
),
);