computeMinIntrinsicWidth method

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

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

Implementation

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