parentRenderBoxGetter property

RenderBox? Function(BuildContext context)? parentRenderBoxGetter
final

Used to calculate the options overlay position.

This is useful if the widget tree can multiple MaterialApp widgets. In that case, the position is not calculated correctly by itself.

One option, could be to get the RenderBox of Scaffold:

var parent = Scaffold.of(context).context.findRenderObject() as RenderBox;

Implementation

final RenderBox? Function(BuildContext context)? parentRenderBoxGetter;