Commit e888e7d82a71887f7757905e93b00525303001a8

Authored by wdn127929
1 parent 8423d9b0

安排bug修复

@@ -554,7 +554,7 @@ class InvicationPageState extends State<InvicationPage> @@ -554,7 +554,7 @@ class InvicationPageState extends State<InvicationPage>
554 _baseIndoProvider.pageState = PageState.Success; 554 _baseIndoProvider.pageState = PageState.Success;
555 String _nameStr = ''; 555 String _nameStr = '';
556 String _tid = ''; 556 String _tid = '';
557 - 557 + tableInfo = [];
558 for (int i = 0; i < detailEntity.tables.length; i++) { 558 for (int i = 0; i < detailEntity.tables.length; i++) {
559 _nameStr += '${detailEntity.tables[i].name},'; 559 _nameStr += '${detailEntity.tables[i].name},';
560 _tid += '${detailEntity.tables[i].id},'; 560 _tid += '${detailEntity.tables[i].id},';
@@ -839,7 +839,7 @@ class InvicationPageState extends State<InvicationPage> @@ -839,7 +839,7 @@ class InvicationPageState extends State<InvicationPage>
839 839
840 _seePhoto(tableid) { 840 _seePhoto(tableid) {
841 // List<String> temp = []; 841 // List<String> temp = [];
842 - if (_baseIndoProvider.photoList[tableid].length > 0) { 842 + if (_baseIndoProvider.photoList[tableid]?.length > 0) {
843 // for (int i = 0; i < _baseIndoProvider.photoList.length; i++) { 843 // for (int i = 0; i < _baseIndoProvider.photoList.length; i++) {
844 // temp.add(_baseIndoProvider.photoList[i].image); 844 // temp.add(_baseIndoProvider.photoList[i].image);
845 // } 845 // }
@@ -1083,16 +1083,19 @@ class InvicationPageState extends State<InvicationPage> @@ -1083,16 +1083,19 @@ class InvicationPageState extends State<InvicationPage>
1083 width: ScreenUtil().setWidth(60 * 2), 1083 width: ScreenUtil().setWidth(60 * 2),
1084 height: ScreenUtil().setWidth(18 * 2), 1084 height: ScreenUtil().setWidth(18 * 2),
1085 fontSize: 22, 1085 fontSize: 22,
1086 - textColor: _baseIndoProvider.photoList.isNotEmpty && 1086 + textColor: _baseIndoProvider.photoList[item['tid']] !=
  1087 + null &&
1087 _baseIndoProvider.photoList[item['tid']].length > 0 1088 _baseIndoProvider.photoList[item['tid']].length > 0
1088 ? MyColours.color_ffffff 1089 ? MyColours.color_ffffff
1089 : MyColours.color_ffffff, 1090 : MyColours.color_ffffff,
1090 isBold: false, 1091 isBold: false,
1091 - gradientStart: _baseIndoProvider.photoList.isNotEmpty && 1092 + gradientStart: _baseIndoProvider.photoList[item['tid']] !=
  1093 + null &&
1092 _baseIndoProvider.photoList[item['tid']].length > 0 1094 _baseIndoProvider.photoList[item['tid']].length > 0
1093 ? MyColours.color_199095 1095 ? MyColours.color_199095
1094 : Color.fromRGBO(154, 154, 154, 1), 1096 : Color.fromRGBO(154, 154, 154, 1),
1095 - gradientEnd: _baseIndoProvider.photoList.isNotEmpty && 1097 + gradientEnd: _baseIndoProvider.photoList[item['tid']] !=
  1098 + null &&
1096 _baseIndoProvider.photoList[item['tid']].length > 0 1099 _baseIndoProvider.photoList[item['tid']].length > 0
1097 ? MyColours.color_199095 1100 ? MyColours.color_199095
1098 : Color.fromRGBO(154, 154, 154, 1), 1101 : Color.fromRGBO(154, 154, 154, 1),
@@ -1244,25 +1247,34 @@ class InvicationPageState extends State<InvicationPage> @@ -1244,25 +1247,34 @@ class InvicationPageState extends State<InvicationPage>
1244 width: ScreenUtil().setWidth(60 * 2), 1247 width: ScreenUtil().setWidth(60 * 2),
1245 height: ScreenUtil().setWidth(18 * 2), 1248 height: ScreenUtil().setWidth(18 * 2),
1246 fontSize: 22, 1249 fontSize: 22,
1247 - textColor: _baseIndoProvider.photoList.isNotEmpty &&  
1248 - _baseIndoProvider  
1249 - .photoList[tableInfo[i]['tid']].length >  
1250 - 0  
1251 - ? MyColours.color_ffffff  
1252 - : MyColours.color_ffffff, 1250 + textColor:
  1251 + _baseIndoProvider.photoList[tableInfo[i]['tid']] !=
  1252 + null &&
  1253 + _baseIndoProvider
  1254 + .photoList[tableInfo[i]['tid']]
  1255 + .length >
  1256 + 0
  1257 + ? MyColours.color_ffffff
  1258 + : MyColours.color_ffffff,
1253 isBold: false, 1259 isBold: false,
1254 - gradientStart: _baseIndoProvider.photoList.isNotEmpty &&  
1255 - _baseIndoProvider  
1256 - .photoList[tableInfo[i]['tid']].length >  
1257 - 0  
1258 - ? MyColours.color_199095  
1259 - : Color.fromRGBO(154, 154, 154, 1),  
1260 - gradientEnd: _baseIndoProvider.photoList.isNotEmpty &&  
1261 - _baseIndoProvider  
1262 - .photoList[tableInfo[i]['tid']].length >  
1263 - 0  
1264 - ? MyColours.color_199095  
1265 - : Color.fromRGBO(154, 154, 154, 1), 1260 + gradientStart:
  1261 + _baseIndoProvider.photoList[tableInfo[i]['tid']] !=
  1262 + null &&
  1263 + _baseIndoProvider
  1264 + .photoList[tableInfo[i]['tid']]
  1265 + .length >
  1266 + 0
  1267 + ? MyColours.color_199095
  1268 + : Color.fromRGBO(154, 154, 154, 1),
  1269 + gradientEnd:
  1270 + _baseIndoProvider.photoList[tableInfo[i]['tid']] !=
  1271 + null &&
  1272 + _baseIndoProvider
  1273 + .photoList[tableInfo[i]['tid']]
  1274 + .length >
  1275 + 0
  1276 + ? MyColours.color_199095
  1277 + : Color.fromRGBO(154, 154, 154, 1),
1266 )) 1278 ))
1267 ], 1279 ],
1268 ))), 1280 ))),