FFormFieldStyle.inherit constructor
FFormFieldStyle.inherit({
- required Color labelColor,
- required Color descriptionColor,
- required FTypography typography,
Creates a FFormFieldStyle that inherits its properties from the given FTypography.
Implementation
FFormFieldStyle.inherit({
required Color labelColor,
required Color descriptionColor,
required FTypography typography,
}) : labelTextStyle = typography.sm.copyWith(
color: labelColor,
fontWeight: FontWeight.w600,
),
descriptionTextStyle = typography.sm.copyWith(color: descriptionColor);