From 2addf66687a758e4a4d1477fd9a4517fb8cb5a2e Mon Sep 17 00:00:00 2001 From: Aydar Farrakhov Date: Thu, 23 Dec 2021 19:17:08 +0300 Subject: [PATCH] fix merge conflicts --- .../lib/pages/playground/states/examples_state.dart | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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; }