diff --git a/lib/ui/pages/coursedetail/screen/course_info_page.dart b/lib/ui/pages/coursedetail/screen/course_info_page.dart index cd6824a5..b3efe1d1 100644 --- a/lib/ui/pages/coursedetail/screen/course_info_page.dart +++ b/lib/ui/pages/coursedetail/screen/course_info_page.dart @@ -202,6 +202,7 @@ class _CourseInfoPageState extends State with AutomaticKeepAlive Future> _getCourseStudent() async { TaskFlow taskFlow = TaskFlow(); + final courseMainInfo = widget.courseInfo.main; final task = IPlusGetStudentListTask(courseId: courseMainInfo.course.id); taskFlow.addTask(task); if (await taskFlow.start()) { @@ -229,6 +230,7 @@ class _CourseInfoPageState extends State with AutomaticKeepAlive void _loadCourseStudent() async { TaskFlow taskFlow = TaskFlow(); + final courseMainInfo = widget.courseInfo.main; final task = IPlusGetStudentListTask(courseId: courseMainInfo.course.id); taskFlow.addTask(task); if (await taskFlow.start()) {