Merge remote-tracking branch 'origin/lab2' into lab3

This commit is contained in:
DyCTaTOR 2024-10-03 15:40:06 +04:00
commit 27d98e5694

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;