INNER CODE UNIT · Dart
lineCenter
fluttercandies/extended_text · lib/src/extended/text_overflow_mixin.dart:638
double lineCenter = line.height / 2;
overflowWidgetRects.add(Rect.fromLTRB(
0,
lineCenter - overflowWidgetSize.height / 2,
overflowWidgetSize.width,
lineCenter + overflowWidgetSize.height / 2,
));
line = lines[lines.length - 1];
double lineTop = 0;
for (int index = 0; index < lines.length - 1; index++) {
final ui.LineMetrics line = lines[index];
lineTop += line.height;
}
lineCenter = lineTop + line.height / 2;
overflowWidgetRects.add(Rect.fromLTRB(
textWidth - overflowWidgetSize.width,
lineCenter - overflowWidgetSize.height / 2,