INNER CODE UNIT · Dart
line
fluttercandies/extended_text · lib/src/extended/text_overflow_mixin.dart:646
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,
textWidth,
lineCenter + overflowWidgetSize.height / 2,
));
}
break;
}
return overflowWidgetRects;
}