computeMaxIntrinsicWidth method

  1. @override
double computeMaxIntrinsicWidth(
  1. double height
)
override

Computes the maximum width required to render the text without wrapping.

Implementation

@override
double computeMaxIntrinsicWidth(double height) {
  _textPainter.text = TextSpan(
    style: normalStyle.style,
    children: _parseText,
  );
  _textPainter.layout();
  return _textPainter.width;
}