@@ -212,13 +212,12 @@ void main() {
212212 ),
213213 );
214214 // The important lines below are the ones marked with "<----"
215- expect (tester.binding.renderView.toStringDeep (minLevel: DiagnosticLevel .info), equalsIgnoringHashCodes (
215+ expect (tester.binding.renderView.toStringDeep (minLevel: DiagnosticLevel .info, wrapWidth : 600 ), equalsIgnoringHashCodes (
216216 '_ReusableRenderView#00000\n '
217217 ' │ debug mode enabled - ${Platform .operatingSystem }\n '
218218 ' │ view size: Size(2400.0, 1800.0) (in physical pixels)\n '
219219 ' │ device pixel ratio: 3.0 (physical pixels per logical pixel)\n '
220- ' │ configuration: BoxConstraints(w=800.0, h=600.0) at 3.0x (in\n '
221- ' │ logical pixels)\n '
220+ ' │ configuration: BoxConstraints(w=800.0, h=600.0) at 3.0x (in logical pixels)\n '
222221 ' │\n '
223222 ' └─child: RenderRepaintBoundary#00000\n '
224223 ' │ needs compositing\n '
@@ -227,19 +226,15 @@ void main() {
227226 ' │ layer: OffsetLayer#00000\n '
228227 ' │ size: Size(800.0, 600.0)\n '
229228 ' │ metrics: 0.0% useful (1 bad vs 0 good)\n '
230- ' │ diagnosis: insufficient data to draw conclusion (less than five\n '
231- ' │ repaints)\n '
229+ ' │ diagnosis: insufficient data to draw conclusion (less than five repaints)\n '
232230 ' │\n '
233231 ' └─child: RenderCustomPaint#00000\n '
234232 ' │ needs compositing\n '
235233 ' │ parentData: <none> (can use size)\n '
236234 ' │ constraints: BoxConstraints(w=800.0, h=600.0)\n '
237235 ' │ size: Size(800.0, 600.0)\n '
238236 ' │ painter: null\n '
239- ' │ foregroundPainter:\n '
240- ' │ _GlowingOverscrollIndicatorPainter(_GlowController(color:\n '
241- ' │ Color(0xffffffff), axis: vertical), _GlowController(color:\n '
242- ' │ Color(0xffffffff), axis: vertical))\n '
237+ ' │ foregroundPainter: _GlowingOverscrollIndicatorPainter(_GlowController(color: ${const Color (0xffffffff )}, axis: vertical), _GlowController(color: ${const Color (0xffffffff )}, axis: vertical))\n '
243238 ' │\n '
244239 ' └─child: RenderRepaintBoundary#00000\n '
245240 ' │ needs compositing\n '
@@ -248,8 +243,7 @@ void main() {
248243 ' │ layer: OffsetLayer#00000\n '
249244 ' │ size: Size(800.0, 600.0)\n '
250245 ' │ metrics: 0.0% useful (1 bad vs 0 good)\n '
251- ' │ diagnosis: insufficient data to draw conclusion (less than five\n '
252- ' │ repaints)\n '
246+ ' │ diagnosis: insufficient data to draw conclusion (less than five repaints)\n '
253247 ' │\n '
254248 ' └─child: _RenderScrollSemantics#00000\n '
255249 ' │ needs compositing\n '
@@ -305,38 +299,20 @@ void main() {
305299 ' │ size: Size(800.0, 600.0)\n '
306300 ' │ axisDirection: down\n '
307301 ' │ crossAxisDirection: right\n '
308- ' │ offset: ScrollPositionWithSingleContext#00000(offset: 0.0, range:\n '
309- ' │ 0.0..39400.0, viewport: 600.0, ScrollableState,\n '
310- ' │ AlwaysScrollableScrollPhysics -> ClampingScrollPhysics ->\n '
311- ' │ RangeMaintainingScrollPhysics, IdleScrollActivity#00000,\n '
312- ' │ ScrollDirection.idle)\n '
302+ ' │ offset: ScrollPositionWithSingleContext#00000(offset: 0.0, range: 0.0..39400.0, viewport: 600.0, ScrollableState, AlwaysScrollableScrollPhysics -> ClampingScrollPhysics -> RangeMaintainingScrollPhysics, IdleScrollActivity#00000, ScrollDirection.idle)\n '
313303 ' │ anchor: 0.0\n '
314304 ' │\n '
315305 ' └─center child: RenderSliverPadding#00000 relayoutBoundary=up1\n '
316306 ' │ parentData: paintOffset=Offset(0.0, 0.0) (can use size)\n '
317- ' │ constraints: SliverConstraints(AxisDirection.down,\n '
318- ' │ GrowthDirection.forward, ScrollDirection.idle, scrollOffset:\n '
319- ' │ 0.0, precedingScrollExtent: 0.0, remainingPaintExtent: 600.0,\n '
320- ' │ crossAxisExtent: 800.0, crossAxisDirection:\n '
321- ' │ AxisDirection.right, viewportMainAxisExtent: 600.0,\n '
322- ' │ remainingCacheExtent: 850.0, cacheOrigin: 0.0)\n '
323- ' │ geometry: SliverGeometry(scrollExtent: 40000.0, paintExtent:\n '
324- ' │ 600.0, maxPaintExtent: 40000.0, hasVisualOverflow: true,\n '
325- ' │ cacheExtent: 850.0)\n '
307+ ' │ constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.idle, scrollOffset: 0.0, precedingScrollExtent: 0.0, remainingPaintExtent: 600.0, crossAxisExtent: 800.0, crossAxisDirection: AxisDirection.right, viewportMainAxisExtent: 600.0, remainingCacheExtent: 850.0, cacheOrigin: 0.0)\n '
308+ ' │ geometry: SliverGeometry(scrollExtent: 40000.0, paintExtent: 600.0, maxPaintExtent: 40000.0, hasVisualOverflow: true, cacheExtent: 850.0)\n '
326309 ' │ padding: EdgeInsets.zero\n '
327310 ' │ textDirection: ltr\n '
328311 ' │\n '
329312 ' └─child: RenderSliverFixedExtentList#00000 relayoutBoundary=up2\n '
330313 ' │ parentData: paintOffset=Offset(0.0, 0.0) (can use size)\n '
331- ' │ constraints: SliverConstraints(AxisDirection.down,\n '
332- ' │ GrowthDirection.forward, ScrollDirection.idle, scrollOffset:\n '
333- ' │ 0.0, precedingScrollExtent: 0.0, remainingPaintExtent: 600.0,\n '
334- ' │ crossAxisExtent: 800.0, crossAxisDirection:\n '
335- ' │ AxisDirection.right, viewportMainAxisExtent: 600.0,\n '
336- ' │ remainingCacheExtent: 850.0, cacheOrigin: 0.0)\n '
337- ' │ geometry: SliverGeometry(scrollExtent: 40000.0, paintExtent:\n '
338- ' │ 600.0, maxPaintExtent: 40000.0, hasVisualOverflow: true,\n '
339- ' │ cacheExtent: 850.0)\n '
314+ ' │ constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.idle, scrollOffset: 0.0, precedingScrollExtent: 0.0, remainingPaintExtent: 600.0, crossAxisExtent: 800.0, crossAxisDirection: AxisDirection.right, viewportMainAxisExtent: 600.0, remainingCacheExtent: 850.0, cacheOrigin: 0.0)\n '
315+ ' │ geometry: SliverGeometry(scrollExtent: 40000.0, paintExtent: 600.0, maxPaintExtent: 40000.0, hasVisualOverflow: true, cacheExtent: 850.0)\n '
340316 ' │ currently live children: 0 to 2\n '
341317 ' │\n '
342318 ' ├─child with index 0: RenderLimitedBox#00000\n '
@@ -387,13 +363,12 @@ void main() {
387363 const GlobalObjectKey <_LeafState >(3 ).currentState! .setKeepAlive (true );
388364 await tester.drag (find.byType (ListView ), const Offset (0.0 , - 1000.0 ));
389365 await tester.pump ();
390- expect (tester.binding.renderView.toStringDeep (minLevel: DiagnosticLevel .info), equalsIgnoringHashCodes (
366+ expect (tester.binding.renderView.toStringDeep (minLevel: DiagnosticLevel .info, wrapWidth : 600 ), equalsIgnoringHashCodes (
391367 '_ReusableRenderView#00000\n '
392368 ' │ debug mode enabled - ${Platform .operatingSystem }\n '
393369 ' │ view size: Size(2400.0, 1800.0) (in physical pixels)\n '
394370 ' │ device pixel ratio: 3.0 (physical pixels per logical pixel)\n '
395- ' │ configuration: BoxConstraints(w=800.0, h=600.0) at 3.0x (in\n '
396- ' │ logical pixels)\n '
371+ ' │ configuration: BoxConstraints(w=800.0, h=600.0) at 3.0x (in logical pixels)\n '
397372 ' │\n '
398373 ' └─child: RenderRepaintBoundary#00000\n '
399374 ' │ needs compositing\n '
@@ -402,19 +377,15 @@ void main() {
402377 ' │ layer: OffsetLayer#00000\n '
403378 ' │ size: Size(800.0, 600.0)\n '
404379 ' │ metrics: 0.0% useful (1 bad vs 0 good)\n '
405- ' │ diagnosis: insufficient data to draw conclusion (less than five\n '
406- ' │ repaints)\n '
380+ ' │ diagnosis: insufficient data to draw conclusion (less than five repaints)\n '
407381 ' │\n '
408382 ' └─child: RenderCustomPaint#00000\n '
409383 ' │ needs compositing\n '
410384 ' │ parentData: <none> (can use size)\n '
411385 ' │ constraints: BoxConstraints(w=800.0, h=600.0)\n '
412386 ' │ size: Size(800.0, 600.0)\n '
413387 ' │ painter: null\n '
414- ' │ foregroundPainter:\n '
415- ' │ _GlowingOverscrollIndicatorPainter(_GlowController(color:\n '
416- ' │ Color(0xffffffff), axis: vertical), _GlowController(color:\n '
417- ' │ Color(0xffffffff), axis: vertical))\n '
388+ ' │ foregroundPainter: _GlowingOverscrollIndicatorPainter(_GlowController(color: ${const Color (0xffffffff )}, axis: vertical), _GlowController(color: ${const Color (0xffffffff )}, axis: vertical))\n '
418389 ' │\n '
419390 ' └─child: RenderRepaintBoundary#00000\n '
420391 ' │ needs compositing\n '
@@ -423,8 +394,7 @@ void main() {
423394 ' │ layer: OffsetLayer#00000\n '
424395 ' │ size: Size(800.0, 600.0)\n '
425396 ' │ metrics: 0.0% useful (1 bad vs 0 good)\n '
426- ' │ diagnosis: insufficient data to draw conclusion (less than five\n '
427- ' │ repaints)\n '
397+ ' │ diagnosis: insufficient data to draw conclusion (less than five repaints)\n '
428398 ' │\n '
429399 ' └─child: _RenderScrollSemantics#00000\n '
430400 ' │ needs compositing\n '
@@ -480,38 +450,20 @@ void main() {
480450 ' │ size: Size(800.0, 600.0)\n '
481451 ' │ axisDirection: down\n '
482452 ' │ crossAxisDirection: right\n '
483- ' │ offset: ScrollPositionWithSingleContext#00000(offset: 2000.0,\n '
484- ' │ range: 0.0..39400.0, viewport: 600.0, ScrollableState,\n '
485- ' │ AlwaysScrollableScrollPhysics -> ClampingScrollPhysics ->\n '
486- ' │ RangeMaintainingScrollPhysics, IdleScrollActivity#00000,\n '
487- ' │ ScrollDirection.idle)\n '
453+ ' │ offset: ScrollPositionWithSingleContext#00000(offset: 2000.0, range: 0.0..39400.0, viewport: 600.0, ScrollableState, AlwaysScrollableScrollPhysics -> ClampingScrollPhysics -> RangeMaintainingScrollPhysics, IdleScrollActivity#00000, ScrollDirection.idle)\n '
488454 ' │ anchor: 0.0\n '
489455 ' │\n '
490456 ' └─center child: RenderSliverPadding#00000 relayoutBoundary=up1\n '
491457 ' │ parentData: paintOffset=Offset(0.0, 0.0) (can use size)\n '
492- ' │ constraints: SliverConstraints(AxisDirection.down,\n '
493- ' │ GrowthDirection.forward, ScrollDirection.idle, scrollOffset:\n '
494- ' │ 2000.0, precedingScrollExtent: 0.0, remainingPaintExtent:\n '
495- ' │ 600.0, crossAxisExtent: 800.0, crossAxisDirection:\n '
496- ' │ AxisDirection.right, viewportMainAxisExtent: 600.0,\n '
497- ' │ remainingCacheExtent: 1100.0, cacheOrigin: -250.0)\n '
498- ' │ geometry: SliverGeometry(scrollExtent: 40000.0, paintExtent:\n '
499- ' │ 600.0, maxPaintExtent: 40000.0, hasVisualOverflow: true,\n '
500- ' │ cacheExtent: 1100.0)\n '
458+ ' │ constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.idle, scrollOffset: 2000.0, precedingScrollExtent: 0.0, remainingPaintExtent: 600.0, crossAxisExtent: 800.0, crossAxisDirection: AxisDirection.right, viewportMainAxisExtent: 600.0, remainingCacheExtent: 1100.0, cacheOrigin: -250.0)\n '
459+ ' │ geometry: SliverGeometry(scrollExtent: 40000.0, paintExtent: 600.0, maxPaintExtent: 40000.0, hasVisualOverflow: true, cacheExtent: 1100.0)\n '
501460 ' │ padding: EdgeInsets.zero\n '
502461 ' │ textDirection: ltr\n '
503462 ' │\n '
504463 ' └─child: RenderSliverFixedExtentList#00000 relayoutBoundary=up2\n '
505464 ' │ parentData: paintOffset=Offset(0.0, 0.0) (can use size)\n '
506- ' │ constraints: SliverConstraints(AxisDirection.down,\n '
507- ' │ GrowthDirection.forward, ScrollDirection.idle, scrollOffset:\n '
508- ' │ 2000.0, precedingScrollExtent: 0.0, remainingPaintExtent:\n '
509- ' │ 600.0, crossAxisExtent: 800.0, crossAxisDirection:\n '
510- ' │ AxisDirection.right, viewportMainAxisExtent: 600.0,\n '
511- ' │ remainingCacheExtent: 1100.0, cacheOrigin: -250.0)\n '
512- ' │ geometry: SliverGeometry(scrollExtent: 40000.0, paintExtent:\n '
513- ' │ 600.0, maxPaintExtent: 40000.0, hasVisualOverflow: true,\n '
514- ' │ cacheExtent: 1100.0)\n '
465+ ' │ constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.idle, scrollOffset: 2000.0, precedingScrollExtent: 0.0, remainingPaintExtent: 600.0, crossAxisExtent: 800.0, crossAxisDirection: AxisDirection.right, viewportMainAxisExtent: 600.0, remainingCacheExtent: 1100.0, cacheOrigin: -250.0)\n '
466+ ' │ geometry: SliverGeometry(scrollExtent: 40000.0, paintExtent: 600.0, maxPaintExtent: 40000.0, hasVisualOverflow: true, cacheExtent: 1100.0)\n '
515467 ' │ currently live children: 4 to 7\n '
516468 ' │\n '
517469 ' ├─child with index 4: RenderLimitedBox#00000 NEEDS-PAINT\n '
0 commit comments