title: Flutter widget test Finder fails because the widget is outside the bounds of the render tree
body: <p>Question: What controls the bounds of the &quot;render tree&quot; when running widget tests (flutter_test)?</p>
  <p>I ask because I am getting an error on very basic button where it can't find the widget because of its vertical offset being outside the bounds of the &quot;render tree&quot; which seems fixed at 800x600.</p>
  <p>I get the message:</p>
  <blockquote>
  <p>Warning: A call to tap() with finder &quot;exactly one widget with text &quot;More Info&quot; (ignoring offstage widgets): Text(&quot;More Info&quot;, dependencies: [MediaQuery, DefaultTextStyle])&quot; derived an Offset (<strong>Offset(400.0, 641.8)</strong>) that would not hit test on the specified widget.
  Maybe the widget is actually off-screen, or another widget is obscuring it, or the widget cannot receive pointer events.
  Indeed, <strong>Offset(400.0, 641.8) is outside the bounds of the root of the render tree, Size(800.0, 600.0).</strong>
  The finder corresponds to this RenderBox: RenderParagraph#1b6b1 relayoutBoundary=up27
  The hit test result at that offset is: HitTestResult(HitTestEntry#b18dd(RenderView#408c3), HitTestEntry#a2393())
  #0      WidgetController._getElementPoint (package:flutter_test/src/controller.dart:953:25)
  #1      WidgetController.getCenter (package:flutter_test/src/controller.dart:836:12)
  #2      WidgetController.tap (package:flutter_test/src/controller.dart:271:18)
  #3      main. (file:///Users/tommy/Repos/surveyapp/survey/test/widget_test.dart:99:18)</p>
  </blockquote>
  <p>The size of the render tree in that error message is 800 x 600. (Not sure how that is set or why. It is curious to me that it is exactly 800x600? So, it is being set somewhere.  Is it because I have a web project and it defaults to that size for some reason when running a test?). Any widget that is past 600 on the offset height can't be found in the test. The screen runs fine on iOS emulator and on Chrome under flutter web. When you use devtools, widget inspector, there are not any layout issues. It is just a button with ancestors column, padding, center, safearea and scaffold as part of a simple stateful widget page.</p>
  <p>(I have had this happening on Fluter version 2.12 or higher.)</p>