INNER CODE UNIT · Dart
lineCenter
fluttercandies/extended_text · lib/src/extended/text_overflow_mixin.dart:209
final double lineCenter = lineTop + line.height / 2;
ui.Rect overflowRect = Rect.zero;
final double textWidth = _textPainter.width;
if (isEven) {
overflowRect = Rect.fromLTRB(
0,
lineCenter - overflowWidgetSize.height / 2,
overflowWidgetSize.width,
lineCenter + overflowWidgetSize.height / 2,
);
} else {
overflowRect = Rect.fromLTRB(
textWidth / 2 - overflowWidgetSize.width / 2,
lineCenter - overflowWidgetSize.height / 2,
textWidth / 2 + overflowWidgetSize.width / 2,
lineCenter + overflowWidgetSize.height / 2,
);
}