|
|
@ -4,7 +4,6 @@ import 'dart:math' as math; |
|
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/cupertino.dart'; |
|
|
|
import 'package:flutter/cupertino.dart'; |
|
|
|
import 'package:flutter/foundation.dart'; |
|
|
|
import 'package:flutter/foundation.dart'; |
|
|
|
import 'package:flutter/gestures.dart'; |
|
|
|
|
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
import 'package:flutter/rendering.dart'; |
|
|
|
import 'package:flutter/rendering.dart'; |
|
|
|
import 'package:flutter/scheduler.dart'; |
|
|
|
import 'package:flutter/scheduler.dart'; |
|
|
@ -588,19 +587,16 @@ class RawEditorState extends EditorState |
|
|
|
_selectionOverlay = null; |
|
|
|
_selectionOverlay = null; |
|
|
|
|
|
|
|
|
|
|
|
_selectionOverlay = EditorTextSelectionOverlay( |
|
|
|
_selectionOverlay = EditorTextSelectionOverlay( |
|
|
|
textEditingValue, |
|
|
|
value: textEditingValue, |
|
|
|
false, |
|
|
|
context: context, |
|
|
|
context, |
|
|
|
debugRequiredFor: widget, |
|
|
|
widget, |
|
|
|
toolbarLayerLink: _toolbarLayerLink, |
|
|
|
_toolbarLayerLink, |
|
|
|
startHandleLayerLink: _startHandleLayerLink, |
|
|
|
_startHandleLayerLink, |
|
|
|
endHandleLayerLink: _endHandleLayerLink, |
|
|
|
_endHandleLayerLink, |
|
|
|
renderObject: getRenderEditor(), |
|
|
|
getRenderEditor(), |
|
|
|
selectionCtrls: widget.selectionCtrls, |
|
|
|
widget.selectionCtrls, |
|
|
|
selectionDelegate: this, |
|
|
|
this, |
|
|
|
clipboardStatus: _clipboardStatus, |
|
|
|
DragStartBehavior.start, |
|
|
|
|
|
|
|
null, |
|
|
|
|
|
|
|
_clipboardStatus, |
|
|
|
|
|
|
|
); |
|
|
|
); |
|
|
|
_selectionOverlay!.handlesVisible = _shouldShowSelectionHandles(); |
|
|
|
_selectionOverlay!.handlesVisible = _shouldShowSelectionHandles(); |
|
|
|
_selectionOverlay!.showHandles(); |
|
|
|
_selectionOverlay!.showHandles(); |
|
|
|