lab2-modificated

This commit is contained in:
DyCTaTOR 2024-10-03 15:39:20 +04:00
parent 238f2e555f
commit 9e25114005

View File

@ -31,7 +31,8 @@ class _UniversityScreenState extends State<UniversityScreen> {
final TextEditingController ageController = TextEditingController();
List<String> selectedCourses = [];
void _addStudent() {
void _addStudent() async {
await Future.delayed(Duration(seconds: 1));
String name = nameController.text;
int age = int.tryParse(ageController.text) ?? 0;