diff --git a/playground/frontend/lib/pages/playground/states/examples_state.dart b/playground/frontend/lib/pages/playground/states/examples_state.dart index fd0b17690c25..ba48a7c216e4 100644 --- a/playground/frontend/lib/pages/playground/states/examples_state.dart +++ b/playground/frontend/lib/pages/playground/states/examples_state.dart @@ -65,10 +65,14 @@ class ExampleState with ChangeNotifier { if (example.isInfoFetched()) { return example; } - String source = await getExampleSource(example.path, sdk); - example.setSource(source); - final outputs = await getExampleOutput(example.path, sdk); - example.setOutputs(outputs); + final exampleData = await Future.wait([ + getExampleSource(example.path, sdk), + getExampleOutput(example.path, sdk), + getExampleLogs(example.path, sdk) + ]); + example.setSource(exampleData[0]); + example.setOutputs(exampleData[1]); + example.setLogs(exampleData[2]); return example; }