From e5b3c533556eaf6763b0e2188ebb11d3b7f56e5f Mon Sep 17 00:00:00 2001 From: ujijrujijr Date: Thu, 3 Oct 2024 14:09:43 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=B4=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BB=D0=B0=D0=B1=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 загружена")); } }