From 9e25114005297ca989a444c613df68033ae4df39 Mon Sep 17 00:00:00 2001 From: DyCTaTOR <125912249+DyCTaTOR@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:39:20 +0400 Subject: [PATCH] lab2-modificated --- lib/main.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index a1a5431..a5095d0 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -31,7 +31,8 @@ class _UniversityScreenState extends State { final TextEditingController ageController = TextEditingController(); List selectedCourses = []; - void _addStudent() { + void _addStudent() async { + await Future.delayed(Duration(seconds: 1)); String name = nameController.text; int age = int.tryParse(ageController.text) ?? 0;