FTileContentStyle.inherit constructor

FTileContentStyle.inherit({
  1. required FColors colors,
  2. required FTypography typography,
})

Creates a FTileContentStyle that inherits its properties.

Implementation

FTileContentStyle.inherit({required FColors colors, required FTypography typography})
  : this(
      prefixIconStyle: FWidgetStateMap({
        WidgetState.disabled: IconThemeData(color: colors.disable(colors.primary), size: 18),
        WidgetState.any: IconThemeData(color: colors.primary, size: 18),
      }),
      titleTextStyle: FWidgetStateMap({
        WidgetState.disabled: typography.base.copyWith(color: colors.disable(colors.primary)),
        WidgetState.any: typography.base,
      }),
      subtitleTextStyle: FWidgetStateMap({
        WidgetState.disabled: typography.xs.copyWith(color: colors.disable(colors.mutedForeground)),
        WidgetState.any: typography.xs.copyWith(color: colors.mutedForeground),
      }),
      detailsTextStyle: FWidgetStateMap({
        WidgetState.disabled: typography.base.copyWith(color: colors.disable(colors.mutedForeground)),
        WidgetState.any: typography.base.copyWith(color: colors.mutedForeground),
      }),
      suffixIconStyle: FWidgetStateMap({
        WidgetState.disabled: IconThemeData(color: colors.disable(colors.mutedForeground), size: 18),
        WidgetState.any: IconThemeData(color: colors.mutedForeground, size: 18),
      }),
    );