Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-19 12:48:24 +08:00
parent 397f887b91
commit 33278a74b2
17 changed files with 79 additions and 101 deletions

View File

@@ -2473,7 +2473,7 @@ class RenderEditable extends RenderBox
switch (defaultTargetPlatform) {
case TargetPlatform.iOS:
case TargetPlatform.macOS:
_caretPrototype = Rect.fromLTWH(
_caretPrototype = Rect.fromLTRB(
0.0,
0.0,
cursorWidth,
@@ -3169,7 +3169,7 @@ class _TextHighlightPainter extends RenderEditablePainter {
.toRect()
.shift(renderEditable._paintOffset)
.intersect(
Rect.fromLTWH(0, 0, textPainter.width, textPainter.height),
Rect.fromLTRB(0, 0, textPainter.width, textPainter.height),
),
highlightPaint,
);