@@ -212,13 +212,12 @@ void main() {
212
212
),
213
213
);
214
214
// 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 (
216
216
'_ReusableRenderView#00000\n '
217
217
' │ debug mode enabled - ${Platform .operatingSystem }\n '
218
218
' │ view size: Size(2400.0, 1800.0) (in physical pixels)\n '
219
219
' │ 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 '
222
221
' │\n '
223
222
' └─child: RenderRepaintBoundary#00000\n '
224
223
' │ needs compositing\n '
@@ -227,19 +226,15 @@ void main() {
227
226
' │ layer: OffsetLayer#00000\n '
228
227
' │ size: Size(800.0, 600.0)\n '
229
228
' │ 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 '
232
230
' │\n '
233
231
' └─child: RenderCustomPaint#00000\n '
234
232
' │ needs compositing\n '
235
233
' │ parentData: <none> (can use size)\n '
236
234
' │ constraints: BoxConstraints(w=800.0, h=600.0)\n '
237
235
' │ size: Size(800.0, 600.0)\n '
238
236
' │ 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 '
243
238
' │\n '
244
239
' └─child: RenderRepaintBoundary#00000\n '
245
240
' │ needs compositing\n '
@@ -248,8 +243,7 @@ void main() {
248
243
' │ layer: OffsetLayer#00000\n '
249
244
' │ size: Size(800.0, 600.0)\n '
250
245
' │ 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 '
253
247
' │\n '
254
248
' └─child: _RenderScrollSemantics#00000\n '
255
249
' │ needs compositing\n '
@@ -305,38 +299,20 @@ void main() {
305
299
' │ size: Size(800.0, 600.0)\n '
306
300
' │ axisDirection: down\n '
307
301
' │ 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 '
313
303
' │ anchor: 0.0\n '
314
304
' │\n '
315
305
' └─center child: RenderSliverPadding#00000 relayoutBoundary=up1\n '
316
306
' │ 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 '
326
309
' │ padding: EdgeInsets.zero\n '
327
310
' │ textDirection: ltr\n '
328
311
' │\n '
329
312
' └─child: RenderSliverFixedExtentList#00000 relayoutBoundary=up2\n '
330
313
' │ 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 '
340
316
' │ currently live children: 0 to 2\n '
341
317
' │\n '
342
318
' ├─child with index 0: RenderLimitedBox#00000\n '
@@ -387,13 +363,12 @@ void main() {
387
363
const GlobalObjectKey <_LeafState >(3 ).currentState! .setKeepAlive (true );
388
364
await tester.drag (find.byType (ListView ), const Offset (0.0 , - 1000.0 ));
389
365
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 (
391
367
'_ReusableRenderView#00000\n '
392
368
' │ debug mode enabled - ${Platform .operatingSystem }\n '
393
369
' │ view size: Size(2400.0, 1800.0) (in physical pixels)\n '
394
370
' │ 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 '
397
372
' │\n '
398
373
' └─child: RenderRepaintBoundary#00000\n '
399
374
' │ needs compositing\n '
@@ -402,19 +377,15 @@ void main() {
402
377
' │ layer: OffsetLayer#00000\n '
403
378
' │ size: Size(800.0, 600.0)\n '
404
379
' │ 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 '
407
381
' │\n '
408
382
' └─child: RenderCustomPaint#00000\n '
409
383
' │ needs compositing\n '
410
384
' │ parentData: <none> (can use size)\n '
411
385
' │ constraints: BoxConstraints(w=800.0, h=600.0)\n '
412
386
' │ size: Size(800.0, 600.0)\n '
413
387
' │ 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 '
418
389
' │\n '
419
390
' └─child: RenderRepaintBoundary#00000\n '
420
391
' │ needs compositing\n '
@@ -423,8 +394,7 @@ void main() {
423
394
' │ layer: OffsetLayer#00000\n '
424
395
' │ size: Size(800.0, 600.0)\n '
425
396
' │ 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 '
428
398
' │\n '
429
399
' └─child: _RenderScrollSemantics#00000\n '
430
400
' │ needs compositing\n '
@@ -480,38 +450,20 @@ void main() {
480
450
' │ size: Size(800.0, 600.0)\n '
481
451
' │ axisDirection: down\n '
482
452
' │ 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 '
488
454
' │ anchor: 0.0\n '
489
455
' │\n '
490
456
' └─center child: RenderSliverPadding#00000 relayoutBoundary=up1\n '
491
457
' │ 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 '
501
460
' │ padding: EdgeInsets.zero\n '
502
461
' │ textDirection: ltr\n '
503
462
' │\n '
504
463
' └─child: RenderSliverFixedExtentList#00000 relayoutBoundary=up2\n '
505
464
' │ 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 '
515
467
' │ currently live children: 4 to 7\n '
516
468
' │\n '
517
469
' ├─child with index 4: RenderLimitedBox#00000 NEEDS-PAINT\n '
0 commit comments