diff --git a/lib/main.dart b/lib/main.dart index 276ed55..08b73c4 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;