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;