fix web cursor height (don't use ios logic)

pull/1693/head
Jesse Ezell 1 year ago committed by X Code
parent 65d1cb6d4a
commit 7c771ad60a
  1. 2
      lib/src/widgets/others/cursor.dart

@ -291,7 +291,7 @@ class CursorPainter {
final caretHeight = editable!.getFullHeightForCaret(position); final caretHeight = editable!.getFullHeightForCaret(position);
if (caretHeight != null) { if (caretHeight != null) {
if (isAppleOS(supportWeb: true)) { if (isAppleOS(supportWeb: false)) {
// Center the caret vertically along the text. // Center the caret vertically along the text.
caretRect = Rect.fromLTWH( caretRect = Rect.fromLTWH(
caretRect.left, caretRect.left,

Loading…
Cancel
Save