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,
);

View File

@@ -6399,7 +6399,7 @@ class _ScribbleFocusableState extends State<_ScribbleFocusable>
final Matrix4 transform = box.getTransformTo(null);
return MatrixUtils.transformRect(
transform,
Rect.fromLTWH(0, 0, box.size.width, box.size.height),
Rect.fromLTRB(0, 0, box.size.width, box.size.height),
);
}

View File

@@ -3573,7 +3573,7 @@ class _SelectionHandleOverlayState extends State<_SelectionHandleOverlay>
final Size handleSize = widget.selectionControls.getHandleSize(
preferredLineHeight,
);
return Rect.fromLTWH(0.0, 0.0, handleSize.width, handleSize.height);
return Rect.fromLTRB(0.0, 0.0, handleSize.width, handleSize.height);
}
@override