mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
@@ -1683,7 +1683,7 @@ class _ScrollableSelectionContainerDelegate
|
||||
bool _globalPositionInScrollable(Offset globalPosition) {
|
||||
final RenderBox box = state.context.findRenderObject()! as RenderBox;
|
||||
final Offset localPosition = box.globalToLocal(globalPosition);
|
||||
final Rect rect = Rect.fromLTWH(0, 0, box.size.width, box.size.height);
|
||||
final Rect rect = Rect.fromLTRB(0, 0, box.size.width, box.size.height);
|
||||
return rect.contains(localPosition);
|
||||
}
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ class EdgeDraggingAutoScroller {
|
||||
final Matrix4 transform = scrollRenderBox.getTransformTo(null);
|
||||
final Rect globalRect = MatrixUtils.transformRect(
|
||||
transform,
|
||||
Rect.fromLTWH(
|
||||
Rect.fromLTRB(
|
||||
0,
|
||||
0,
|
||||
scrollRenderBox.size.width,
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
@@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user