Revert "Fix position of CupertinoContextMenu within Transform.scale (#97896)" (#102938)

This reverts commit 6ddb99e98f.
This commit is contained in:
Darren Austin
2022-05-02 13:40:12 -07:00
committed by GitHub
parent 6ddb99e98f
commit 7965ee25dd
5 changed files with 13 additions and 70 deletions

View File

@@ -1138,7 +1138,7 @@ abstract class WidgetController {
/// Returns the rect of the given widget. This is only valid once
/// the widget's render object has been laid out at least once.
Rect getRect(Finder finder) => Rect.fromPoints(getTopLeft(finder), getBottomRight(finder));
Rect getRect(Finder finder) => getTopLeft(finder) & getSize(finder);
/// Attempts to find the [SemanticsNode] of first result from `finder`.
///