FFormFieldStyle.inherit constructor

FFormFieldStyle.inherit({
  1. required Color labelColor,
  2. required Color descriptionColor,
  3. 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);