ChameleonText
Customization of the Text component to change the color of the text displayed dynamically based on the background color where the text is
Parameters
the resource identifier of the text to be displayed
the Modifier to be applied to this layout node
the size of glyphs to use when painting the text. See TextStyle.fontSize.
the typeface variant to use when drawing the letters (e.g., italic). See TextStyle.fontStyle.
the typeface thickness to use when painting the text (e.g., FontWeight.Bold).
the font family to be used when rendering the text. See TextStyle.fontFamily.
the amount of space to add between each letter. See TextStyle.letterSpacing.
the decorations to paint on the text (e.g., an underline). See TextStyle.textDecoration.
the alignment of the text within the lines of the paragraph. See TextStyle.textAlign.
line height for the Paragraph in TextUnit unit, e.g. SP or EM. See TextStyle.lineHeight.
how visual overflow should be handled.
callback that is executed when a new text layout is calculated. A TextLayoutResult object that callback provides contains paragraph information, size of the text, baselines and other details. The callback can be used to add additional decoration or functionality to the text. For example, to draw selection around the text.
style configuration for the text such as color, font, line height etc.
The background color, in the hexadecimal format, where the text is displayed
Customization of the Text component to change the color of the text displayed dynamically based on the background color where the text is
Parameters
the text to be displayed
the Modifier to be applied to this layout node
the size of glyphs to use when painting the text. See TextStyle.fontSize.
the typeface variant to use when drawing the letters (e.g., italic). See TextStyle.fontStyle.
the typeface thickness to use when painting the text (e.g., FontWeight.Bold).
the font family to be used when rendering the text. See TextStyle.fontFamily.
the amount of space to add between each letter. See TextStyle.letterSpacing.
the decorations to paint on the text (e.g., an underline). See TextStyle.textDecoration.
the alignment of the text within the lines of the paragraph. See TextStyle.textAlign.
line height for the Paragraph in TextUnit unit, e.g. SP or EM. See TextStyle.lineHeight.
how visual overflow should be handled.
callback that is executed when a new text layout is calculated. A TextLayoutResult object that callback provides contains paragraph information, size of the text, baselines and other details. The callback can be used to add additional decoration or functionality to the text. For example, to draw selection around the text.
style configuration for the text such as color, font, line height etc.
The background color, in the hexadecimal format, where the text is displayed
Customization of the Text component to change the color of the text displayed dynamically based on the background color where the text is
Parameters
the resource identifier of the text to be displayed
the Modifier to be applied to this layout node
the size of glyphs to use when painting the text. See TextStyle.fontSize.
the typeface variant to use when drawing the letters (e.g., italic). See TextStyle.fontStyle.
the typeface thickness to use when painting the text (e.g., FontWeight.Bold).
the font family to be used when rendering the text. See TextStyle.fontFamily.
the amount of space to add between each letter. See TextStyle.letterSpacing.
the decorations to paint on the text (e.g., an underline). See TextStyle.textDecoration.
the alignment of the text within the lines of the paragraph. See TextStyle.textAlign.
line height for the Paragraph in TextUnit unit, e.g. SP or EM. See TextStyle.lineHeight.
how visual overflow should be handled.
callback that is executed when a new text layout is calculated. A TextLayoutResult object that callback provides contains paragraph information, size of the text, baselines and other details. The callback can be used to add additional decoration or functionality to the text. For example, to draw selection around the text.
style configuration for the text such as color, font, line height etc.
The background color where the text is displayed
Customization of the Text component to change the color of the text displayed dynamically based on the background color where the text is
Parameters
the text to be displayed
the Modifier to be applied to this layout node
the size of glyphs to use when painting the text. See TextStyle.fontSize.
the typeface variant to use when drawing the letters (e.g., italic). See TextStyle.fontStyle.
the typeface thickness to use when painting the text (e.g., FontWeight.Bold).
the font family to be used when rendering the text. See TextStyle.fontFamily.
the amount of space to add between each letter. See TextStyle.letterSpacing.
the decorations to paint on the text (e.g., an underline). See TextStyle.textDecoration.
the alignment of the text within the lines of the paragraph. See TextStyle.textAlign.
line height for the Paragraph in TextUnit unit, e.g. SP or EM. See TextStyle.lineHeight.
how visual overflow should be handled.
callback that is executed when a new text layout is calculated. A TextLayoutResult object that callback provides contains paragraph information, size of the text, baselines and other details. The callback can be used to add additional decoration or functionality to the text. For example, to draw selection around the text.
style configuration for the text such as color, font, line height etc.
The background color where the text is displayed