FTileContentStyle.inherit constructor

FTileContentStyle.inherit({
  1. required FColorScheme colorScheme,
  2. required FTypography typography,
})

Creates a FTileContentStyle that inherits from the given colorScheme and typography.

Implementation

FTileContentStyle.inherit({required FColorScheme colorScheme, required FTypography typography})
    : this(
        enabledStyle: FTileContentStateStyle(
          prefixIconStyle: FIconStyle(color: colorScheme.primary, size: 18),
          titleTextStyle: typography.base,
          subtitleTextStyle: typography.xs.copyWith(color: colorScheme.mutedForeground),
          detailsTextStyle: typography.base.copyWith(color: colorScheme.mutedForeground),
          suffixIconStyle: FIconStyle(color: colorScheme.mutedForeground, size: 18),
        ),
        enabledHoveredStyle: FTileContentStateStyle(
          prefixIconStyle: FIconStyle(color: colorScheme.primary, size: 18),
          titleTextStyle: typography.base,
          subtitleTextStyle: typography.xs.copyWith(color: colorScheme.mutedForeground),
          detailsTextStyle: typography.base.copyWith(color: colorScheme.mutedForeground),
          suffixIconStyle: FIconStyle(color: colorScheme.mutedForeground, size: 18),
        ),
        disabledStyle: FTileContentStateStyle(
          prefixIconStyle: FIconStyle(color: colorScheme.disable(colorScheme.primary), size: 18),
          titleTextStyle: typography.base.copyWith(color: colorScheme.disable(colorScheme.primary)),
          subtitleTextStyle: typography.xs.copyWith(color: colorScheme.disable(colorScheme.mutedForeground)),
          detailsTextStyle: typography.base.copyWith(color: colorScheme.disable(colorScheme.mutedForeground)),
          suffixIconStyle: FIconStyle(color: colorScheme.disable(colorScheme.mutedForeground), size: 18),
        ),
      );