bounds property
Rect
get
bounds
Calculate the widget bounds for iPad popup position
Implementation
Rect get bounds {
final referenceBox =
childKey.currentContext!.findRenderObject()! as RenderBox;
final topLeft = referenceBox.localToGlobal(
referenceBox.paintBounds.topLeft,
);
final bottomRight = referenceBox.localToGlobal(
referenceBox.paintBounds.bottomRight,
);
return Rect.fromPoints(topLeft, bottomRight);
}