mirror of
https://github.com/flutter/samples.git
synced 2026-04-19 21:41:43 +00:00
Flutter 3.29 beta (#2571)
This commit is contained in:
@@ -36,11 +36,10 @@ Offset textOffsetToPosition(WidgetTester tester, int offset) {
|
||||
}
|
||||
|
||||
List<TextSelectionPoint> globalize(
|
||||
Iterable<TextSelectionPoint> points, RenderBox box) {
|
||||
Iterable<TextSelectionPoint> points,
|
||||
RenderBox box,
|
||||
) {
|
||||
return points.map<TextSelectionPoint>((point) {
|
||||
return TextSelectionPoint(
|
||||
box.localToGlobal(point.point),
|
||||
point.direction,
|
||||
);
|
||||
return TextSelectionPoint(box.localToGlobal(point.point), point.direction);
|
||||
}).toList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user