perf: build unshown run-detail tabs after the route transition; interaction bench
FadeThroughStack(lazy: true) builds only the shown page first and the rest one per frame once no animation runs. Opening a run detail no longer lays out Timeline, Artifacts and Changes offstage during the route transition (transition build 62-103 ms -> 38-59 ms); first tab switches are unchanged. Adds tool/perf/interaction_bench.mjs (FrameTiming per interaction over the full-app fixture, CPU profiles mapped to Dart files), fixture options for hits/chats/graph, and notes/perf-round3.md with the survey.
This commit is contained in:
@@ -467,6 +467,7 @@ class _RunDetailTabsState extends State<RunDetailTabs> {
|
||||
final body = FadeThroughStack(
|
||||
key: ValueKey('run-detail-body-${widget.run['id']}'),
|
||||
index: tabs.indexOf(shown),
|
||||
lazy: true,
|
||||
children: [for (final tab in tabs) _body(tab)],
|
||||
);
|
||||
if (edge == FloatingBarEdge.top &&
|
||||
|
||||
Reference in New Issue
Block a user