File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -477,8 +477,8 @@ class QuillEditorState extends State<QuillEditor>
477
477
selectionColor = selectionTheme.selectionColor ??
478
478
cupertinoTheme.primaryColor.withOpacity (0.40 );
479
479
cursorRadius ?? = const Radius .circular (2 );
480
- cursorOffset = Offset (
481
- iOSHorizontalOffset / MediaQuery .of (context).devicePixelRatio, 0 );
480
+ cursorOffset =
481
+ Offset ( iOSHorizontalOffset / View .of (context).devicePixelRatio, 0 );
482
482
} else {
483
483
textSelectionControls = materialTextSelectionControls;
484
484
paintCursorAboveText = false ;
Original file line number Diff line number Diff line change @@ -968,7 +968,7 @@ class RawEditorState extends EditorState
968
968
widget.selectionColor,
969
969
widget.enableInteractiveSelection,
970
970
_hasFocus,
971
- MediaQuery .of (context).devicePixelRatio,
971
+ View .of (context).devicePixelRatio,
972
972
_cursorCont);
973
973
return editableTextLine;
974
974
}
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ class EditableTextBlock extends StatelessWidget {
159
159
color,
160
160
enableInteractiveSelection,
161
161
hasFocus,
162
- MediaQuery .of (context).devicePixelRatio,
162
+ View .of (context).devicePixelRatio,
163
163
cursorCont);
164
164
final nodeTextDirection = getDirectionOfNode (line);
165
165
children.add (Directionality (
You can’t perform that action at this time.
0 commit comments