code format

pull/1287/head
luying 2 years ago
parent 9382dfe0a1
commit c59bf8e4dc
  1. 4
      lib/src/widgets/editor.dart

@ -1006,7 +1006,9 @@ class RenderEditor extends RenderEditableContainerBox
if (textSelection.isCollapsed) { if (textSelection.isCollapsed) {
final child = childAtPosition(textSelection.extent); final child = childAtPosition(textSelection.extent);
final localPosition = TextPosition( final localPosition = TextPosition(
offset: textSelection.extentOffset - child.container.offset,affinity: textSelection.affinity); offset: textSelection.extentOffset - child.container.offset,
affinity: textSelection.affinity,
);
final localOffset = child.getOffsetForCaret(localPosition); final localOffset = child.getOffsetForCaret(localPosition);
final parentData = child.parentData as BoxParentData; final parentData = child.parentData as BoxParentData;
return <TextSelectionPoint>[ return <TextSelectionPoint>[

Loading…
Cancel
Save