diff --git a/lib/main.dart b/lib/main.dart index 612665b..5d7f64a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -114,7 +114,7 @@ class Game extends Object { var rand = Random(); int time = rand.nextInt(10000) + 100; //асинхронность (Future), анонимная функция (Anonymous function) - Future.delayed( + await Future.delayed( Duration(milliseconds: time), () => print("Игра $name загружена")); } }