FRawItemContentStyle.inherit constructor
FRawItemContentStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required Color prefix,
- required Color color,
- required EdgeInsetsGeometry padding,
Creates a FRawItemContentStyle that inherits its properties.
Implementation
FRawItemContentStyle.inherit({
required FColors colors,
required FTypography typography,
required Color prefix,
required Color color,
required EdgeInsetsGeometry padding,
}) : this(
prefixIconStyle: .from(
IconThemeData(color: prefix, size: typography.md.fontSize),
variants: {
[.disabled]: .delta(color: colors.disable(prefix)),
},
),
childTextStyle: FVariants(
typography.sm.copyWith(color: color),
variants: {
[.disabled]: typography.sm.copyWith(color: colors.disable(color)),
},
),
padding: padding,
);