no message

This commit is contained in:
1147192855@qq.com 2024-03-22 10:12:57 +08:00
parent 2bf8ae88f6
commit bf3e2eb9e2
1 changed files with 44 additions and 36 deletions

View File

@ -409,16 +409,33 @@ class _JobListParticipateInClassState extends State<JobListParticipateInClass> w
),
backgroundColor: Colors.white,
),
body: MyFutureBuilder.buildFutureBuilderOfSingleInstance<List<MarkingTasks>?>(context, _future, (value) {
if (value == null) return Container();
value.forEach((e) {
e.collectNumber = favoriteMap['${e.dpcSchoolId}+${e.dpcGradeId}+${e.className}'] ?? 0;
});
bool thePadTerminal = isPad();
if (widget.completed) {
//
if (thePadTerminal)
return TabletEndCompleted(
body: RefreshIndicator(
onRefresh: () async {
getListOfJobFavoritesData().then((value) {
_future = getData();
toUpState(setState, () {}, mounted);
});
},
child: MyFutureBuilder.buildFutureBuilderOfSingleInstance<List<MarkingTasks>?>(context, _future, (value) {
if (value == null) return Container();
value.forEach((e) {
e.collectNumber = favoriteMap['${e.dpcSchoolId}+${e.dpcGradeId}+${e.className}'] ?? 0;
});
bool thePadTerminal = isPad();
if (widget.completed) {
//
if (thePadTerminal)
return TabletEndCompleted(
data: value,
genderName: widget.genderName,
bookmarks: bookmarks,
jobViewReport: jobViewReport,
quickDataCheck: quickDataCheck,
showStudentList: showStudentList,
);
//
return MobileEndCompleted(
data: value,
genderName: widget.genderName,
bookmarks: bookmarks,
@ -426,21 +443,23 @@ class _JobListParticipateInClassState extends State<JobListParticipateInClass> w
quickDataCheck: quickDataCheck,
showStudentList: showStudentList,
);
}
//
return MobileEndCompleted(
data: value,
genderName: widget.genderName,
bookmarks: bookmarks,
jobViewReport: jobViewReport,
quickDataCheck: quickDataCheck,
showStudentList: showStudentList,
);
}
//
if (thePadTerminal)
return TabletEnd(
data: value,
genderName: widget.genderName,
bookmarks: bookmarks,
endReview: endReview,
goToReview: goToReview,
jobViewReport: jobViewReport,
quickDataCheck: quickDataCheck,
oneClickReview: oneClickReview,
showStudentList: showStudentList,
);
//
if (thePadTerminal)
return TabletEnd(
return MobileEnd(
data: value,
genderName: widget.genderName,
bookmarks: bookmarks,
@ -451,19 +470,8 @@ class _JobListParticipateInClassState extends State<JobListParticipateInClass> w
oneClickReview: oneClickReview,
showStudentList: showStudentList,
);
return MobileEnd(
data: value,
genderName: widget.genderName,
bookmarks: bookmarks,
endReview: endReview,
goToReview: goToReview,
jobViewReport: jobViewReport,
quickDataCheck: quickDataCheck,
oneClickReview: oneClickReview,
showStudentList: showStudentList,
);
}),
}),
),
),
);
}