Remove offstage wording from KeepAlive (#24881)
What KeepAlive does is different from the Offstage widget. Let's not confuse these two and be more speicific in the wording for KeepAlive.
This commit is contained in:
committed by
GitHub
parent
7058cf5a8f
commit
46599167d5
@@ -602,7 +602,7 @@ abstract class RenderSliverMultiBoxAdaptor extends RenderSliver
|
||||
final List<int> 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,
|
||||
));
|
||||
}
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user