ThemeTextStyleExtensions extension

Define a theme extension for TextStyle.

TextStyle用のテーマエクステンションを定義します。

on

Methods

darken([double amount = 0.1]) TextStyle

Available on TextStyle, provided by the ThemeTextStyleExtensions extension

Darkens TextStyle.color of the text by amount.
largize([double amount = 1]) TextStyle

Available on TextStyle, provided by the ThemeTextStyleExtensions extension

Increase TextStyle.fontSize of the text by the amount of amount.
lighten([double amount = 0.1]) TextStyle

Available on TextStyle, provided by the ThemeTextStyleExtensions extension

Makes TextStyle.color of the text brighter by amount.
smallize([double amount = 1]) TextStyle

Available on TextStyle, provided by the ThemeTextStyleExtensions extension

Decrease TextStyle.fontSize of the text by the amount of amount.
withBold([FontWeight fontWeight = FontWeight.bold]) TextStyle

Available on TextStyle, provided by the ThemeTextStyleExtensions extension

Set TextStyle.fontWeight to fontWeight for the text.
withColor(Color color) TextStyle

Available on TextStyle, provided by the ThemeTextStyleExtensions extension

Set TextStyle.color to color for the text.
withOpacity(double opacity) TextStyle

Available on TextStyle, provided by the ThemeTextStyleExtensions extension

Set the transparency of the text's TextStyle.color to opacity.
withSize(double fontSize) TextStyle

Available on TextStyle, provided by the ThemeTextStyleExtensions extension

Set TextStyle.fontSize to fontSize for the text.