lab2-modificated
This commit is contained in:
parent
238f2e555f
commit
9e25114005
@ -31,7 +31,8 @@ class _UniversityScreenState extends State<UniversityScreen> {
|
|||||||
final TextEditingController ageController = TextEditingController();
|
final TextEditingController ageController = TextEditingController();
|
||||||
List<String> selectedCourses = [];
|
List<String> selectedCourses = [];
|
||||||
|
|
||||||
void _addStudent() {
|
void _addStudent() async {
|
||||||
|
await Future.delayed(Duration(seconds: 1));
|
||||||
String name = nameController.text;
|
String name = nameController.text;
|
||||||
int age = int.tryParse(ageController.text) ?? 0;
|
int age = int.tryParse(ageController.text) ?? 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user