TextColorExtension extension

Extension on TextStyle to provide convenience methods for setting text colors based on theme colors

on

Methods

wcBackground(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the background color from the current context.
wcError(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the error color from the current context.
wcErrorContainer(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the errorContainer color from the current context.
wcInversePrimary(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the inversePrimary color from the current context.
wcInverseSurface(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the inverseSurface color from the current context.
wColor(Color color) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the given color.
wcOnBackground(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the onBackground color from the current context.
wcOnError(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the onError color from the current context.
wcOnErrorContainer(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the onErrorContainer color from the current context.
wcOnInverseSurface(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the onInverseSurface color from the current context.
wcOnPrimary(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the onPrimary color from the current context.
wcOnPrimaryContainer(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the onPrimaryContainer color from the current context.
wcOnSecondary(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the onSecondary color from the current context.
wcOnSecondaryContainer(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the onSecondaryContainer color from the current context.
wcOnSurface(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the onSurface color from the current context.
wcOnSurfaceVariant(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the onSurfaceVariant color from the current context.
wcOnTertiary(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the onTertiary color from the current context.
wcOnTertiaryContainer(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the onTertiaryContainer color from the current context.
wcOutline(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the outline color from the current context.
wcOutlineVariant(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the outlineVariant color from the current context.
wcPrimary(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the primary color from the current context.
wcPrimaryContainer(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the primaryContainer color from the current context.
wcScrim(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the scrim color from the current context.
wcSecondary(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the secondary color from the current context.
wcSecondaryContainer(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the secondaryContainer color from the current context.
wcShadow(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the shadow color from the current context.
wcSurface(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the surface color from the current context.
wcSurfaceContainerHighest(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the surfaceVariant color from the current context.
wcSurfaceTint(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the surfaceTint color from the current context.
wcSurfaceVariant(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the surfaceVariant color from the current context.
wcTertiary(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the tertiary color from the current context.
wcTertiaryContainer(BuildContext context) TextStyle?

Available on TextStyle?, provided by the TextColorExtension extension

Creates a new TextStyle with the tertiaryContainer color from the current context.