样式修改
This commit is contained in:
parent
fa9e9912d5
commit
4dfab0f4c3
|
|
@ -43,7 +43,7 @@ class _JobFavoriteState extends State<JobFavorite> with CommonMixin {
|
||||||
JobReportJoinClass? classData;
|
JobReportJoinClass? classData;
|
||||||
late String loginName;
|
late String loginName;
|
||||||
final int pageSize = 100;
|
final int pageSize = 100;
|
||||||
String className = '-1';
|
String className = '全部';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
|
|
@ -376,6 +376,7 @@ Widget $classSelection(List<JobReportJoinClass>? involveClasses, JobReportJoinCl
|
||||||
)),
|
)),
|
||||||
child: DropdownButton(
|
child: DropdownButton(
|
||||||
value: classData?.uniqueId ?? '-1',
|
value: classData?.uniqueId ?? '-1',
|
||||||
|
|
||||||
style: TextStyle(color: Color.fromRGBO(89, 89, 89, 1), fontSize: 12.sp),
|
style: TextStyle(color: Color.fromRGBO(89, 89, 89, 1), fontSize: 12.sp),
|
||||||
underline: Container(),
|
underline: Container(),
|
||||||
// isExpanded:true,
|
// isExpanded:true,
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,7 @@ class _QuickDataCheckPageState extends State<QuickDataCheckPage>
|
||||||
style: TextStyle(fontSize: 14.sp, color: Colors.white),
|
style: TextStyle(fontSize: 14.sp, color: Colors.white),
|
||||||
)),
|
)),
|
||||||
)),
|
)),
|
||||||
|
SizedBox(width: 24.r,),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
SizedBox(height: 10.r),
|
SizedBox(height: 10.r),
|
||||||
|
|
|
||||||
|
|
@ -34,27 +34,29 @@ class _QuickStudentDataTableState extends State<QuickStudentDataTable> {
|
||||||
assert(index >= 0);
|
assert(index >= 0);
|
||||||
StudentDetails item = widget.bodyList[index];
|
StudentDetails item = widget.bodyList[index];
|
||||||
int num = 0;
|
int num = 0;
|
||||||
|
int total = 0;
|
||||||
item.kgDetails.forEach((element) {
|
item.kgDetails.forEach((element) {
|
||||||
if (element.state == 0) {
|
if (element.state == 0) {
|
||||||
num = num + 1;
|
num = num + 1;
|
||||||
}
|
}
|
||||||
|
total = total + 1;
|
||||||
});
|
});
|
||||||
item.zgDetails.forEach((element) {
|
item.zgDetails.forEach((element) {
|
||||||
if (element.state == 0) {
|
if (element.state == 0) {
|
||||||
num = num + 1;
|
num = num + 1;
|
||||||
}
|
}
|
||||||
|
total = total + 1;
|
||||||
});
|
});
|
||||||
return DataRow2.byIndex(
|
return DataRow2.byIndex(
|
||||||
index: index,
|
index: index,
|
||||||
color: color != null
|
color: color != null
|
||||||
? num == 0
|
? num == total
|
||||||
? MaterialStateProperty.all(color)
|
? MaterialStateProperty.all(Color(0xFFFFD79C))
|
||||||
: MaterialStateProperty.all(Color(0xFFFFD79C))
|
: MaterialStateProperty.all(color)
|
||||||
: null,
|
: null,
|
||||||
cells: [
|
cells: [
|
||||||
DataCell(InkWell(
|
DataCell(InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
|
||||||
RouterManager.router.navigateTo(
|
RouterManager.router.navigateTo(
|
||||||
context,
|
context,
|
||||||
RouterManager.quickCheckPersonalPath +
|
RouterManager.quickCheckPersonalPath +
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue