We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TextPainter
1 parent 9ad5fc2 commit c575638Copy full SHA for c575638
packages/flutter/lib/src/painting/text_painter.dart
@@ -583,8 +583,9 @@ class _LineCaretMetrics {
583
/// changes, return to step 2. If the text to be painted changes,
584
/// return to step 1.
585
///
586
-/// The default text style is white. To change the color of the text,
587
-/// pass a [TextStyle] object to the [TextSpan] in `text`.
+/// The default text style color is white on non-web platforms and black on
+/// the web. If developing across both platforms, always set the text color
588
+/// explicitly.
589
class TextPainter {
590
/// Creates a text painter that paints the given text.
591
0 commit comments