FTileGroupStyle.inherit constructor

FTileGroupStyle.inherit({
  1. required FColorScheme colorScheme,
  2. required FTypography typography,
  3. required FStyle style,
})

Creates a FTileGroupStyle that inherits from the given arguments.

Implementation

FTileGroupStyle.inherit({
  required FColorScheme colorScheme,
  required FTypography typography,
  required FStyle style,
}) : this(
        tileStyle: FTileStyle.inherit(colorScheme: colorScheme, typography: typography, style: style),
        enabledStyle: FFormFieldStyle(
          labelTextStyle: typography.base.copyWith(
            color: style.enabledFormFieldStyle.labelTextStyle.color,
            fontWeight: FontWeight.w600,
          ),
          descriptionTextStyle: typography.xs.copyWith(
            color: style.enabledFormFieldStyle.descriptionTextStyle.color,
          ),
        ),
        disabledStyle: FFormFieldStyle(
          labelTextStyle: typography.base.copyWith(
            color: style.disabledFormFieldStyle.labelTextStyle.color,
            fontWeight: FontWeight.w600,
          ),
          descriptionTextStyle: typography.xs.copyWith(
            color: style.disabledFormFieldStyle.descriptionTextStyle.color,
          ),
        ),
        errorStyle: FFormFieldErrorStyle(
          labelTextStyle: typography.base.copyWith(
            color: style.enabledFormFieldStyle.labelTextStyle.color,
            fontWeight: FontWeight.w600,
          ),
          descriptionTextStyle: typography.xs.copyWith(
            color: style.errorFormFieldStyle.descriptionTextStyle.color,
          ),
          errorTextStyle: typography.xs.copyWith(
            color: style.errorFormFieldStyle.errorTextStyle.color,
          ),
        ),
      );