diff --git a/packages/flutter/lib/src/rendering/sliver_multi_box_adaptor.dart b/packages/flutter/lib/src/rendering/sliver_multi_box_adaptor.dart index e719a49325..453e9b4527 100644 --- a/packages/flutter/lib/src/rendering/sliver_multi_box_adaptor.dart +++ b/packages/flutter/lib/src/rendering/sliver_multi_box_adaptor.dart @@ -602,7 +602,7 @@ abstract class RenderSliverMultiBoxAdaptor extends RenderSliver final List indices = _keepAliveBucket.keys.toList()..sort(); for (int index in indices) { children.add(_keepAliveBucket[index].toDiagnosticsNode( - name: 'child with index $index (kept alive offstage)', + name: 'child with index $index (kept alive but not laid out)', style: DiagnosticsTreeStyle.offstage, )); } diff --git a/packages/flutter/test/widgets/keep_alive_test.dart b/packages/flutter/test/widgets/keep_alive_test.dart index a3139aa881..a17018108b 100644 --- a/packages/flutter/test/widgets/keep_alive_test.dart +++ b/packages/flutter/test/widgets/keep_alive_test.dart @@ -464,7 +464,7 @@ void main() { ' ╎ constraints: BoxConstraints(w=800.0, h=400.0)\n' ' ╎ size: Size(800.0, 400.0)\n' ' ╎\n' - ' ╎╌child with index 0 (kept alive offstage): RenderLimitedBox#00000\n' // <----- this one is index 0 and is marked as being offstage + ' ╎╌child with index 0 (kept alive but not laid out): RenderLimitedBox#00000\n' // <----- this one is index 0 and is marked as being kept alive but not laid out ' ╎ │ parentData: index=0; keepAlive; layoutOffset=0.0\n' ' ╎ │ constraints: BoxConstraints(w=800.0, h=400.0)\n' ' ╎ │ size: Size(800.0, 400.0)\n' @@ -476,7 +476,7 @@ void main() { ' ╎ constraints: BoxConstraints(w=800.0, h=400.0)\n' ' ╎ size: Size(800.0, 400.0)\n' ' ╎\n' // <----- dashed line ends here - ' └╌child with index 3 (kept alive offstage): RenderLimitedBox#00000\n' + ' └╌child with index 3 (kept alive but not laid out): RenderLimitedBox#00000\n' ' │ parentData: index=3; keepAlive; layoutOffset=1200.0\n' ' │ constraints: BoxConstraints(w=800.0, h=400.0)\n' ' │ size: Size(800.0, 400.0)\n'