Improve the scrolling performance by reducing the repaint areas (#430)

pull/435/head
appflowy 4 years ago committed by GitHub
parent da8e1eec3a
commit 2fd395a21a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      lib/src/widgets/text_line.dart

@ -579,6 +579,9 @@ class RenderEditableTextLine extends RenderEditableBox {
return _getPosition(position, 1.5);
}
@override
bool get isRepaintBoundary => true;
TextPosition? _getPosition(TextPosition textPosition, double dyScale) {
assert(textPosition.offset < line.length);
final offset = getOffsetForCaret(textPosition)

Loading…
Cancel
Save