FItemContentStyle.inherit constructor

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

Creates a FItemContentStyle that inherits its properties.

Implementation

FItemContentStyle.inherit({required FColors colors, required FTypography typography})
  : this(
      prefixIconStyle: FWidgetStateMap({
        WidgetState.disabled: IconThemeData(color: colors.disable(colors.primary), size: 15),
        WidgetState.any: IconThemeData(color: colors.primary, size: 15),
      }),
      titleTextStyle: FWidgetStateMap({
        WidgetState.disabled: typography.sm.copyWith(color: colors.disable(colors.primary)),
        WidgetState.any: typography.sm,
      }),
      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.xs.copyWith(color: colors.disable(colors.mutedForeground)),
        WidgetState.any: typography.xs.copyWith(color: colors.mutedForeground),
      }),
      suffixIconStyle: FWidgetStateMap({
        WidgetState.disabled: IconThemeData(color: colors.disable(colors.mutedForeground), size: 15),
        WidgetState.any: IconThemeData(color: colors.mutedForeground, size: 15),
      }),
    );