This repository was archived by the owner on Apr 29, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ void _handleKeyEvent(RawKeyEvent keyEvent) {
266
266
267
267
if ( kcmd == KeyCommand . Copy ) {
268
268
Clipboard . setData (
269
- new ClipboardData ( text : this . selection . textInside ( this . text . text ) )
269
+ new ClipboardData ( text : this . selection . textInside ( this . text . toPlainText ( ) ) )
270
270
) ;
271
271
}
272
272
}
@@ -284,7 +284,6 @@ public override void detach() {
284
284
public void selectPositionAt ( Offset from = null , Offset to = null , SelectionChangedCause ? cause = null ) {
285
285
D . assert ( cause != null ) ;
286
286
D . assert ( from != null ) ;
287
- this . _layoutText ( this . constraints . maxWidth ) ;
288
287
if ( true ) {
289
288
TextPosition fromPosition =
290
289
this . _textPainter . getPositionForOffset ( this . globalToLocal ( from ) ) ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public SelectableText(string data,
36
36
this . selectionColor = selectionColor ;
37
37
}
38
38
39
- SelectableText ( TextSpan textSpan ,
39
+ public SelectableText ( TextSpan textSpan ,
40
40
Key key = null ,
41
41
TextStyle style = null ,
42
42
TextAlign ? textAlign = null ,
You can’t perform that action at this time.
0 commit comments