Commit 7292c82a69f35919a69009fb223d9f507f20b118

Authored by wdn127929
1 parent bb2bc432

null 处理

@@ -1341,13 +1341,21 @@ class TitleAndBtn extends StatelessWidget { @@ -1341,13 +1341,21 @@ class TitleAndBtn extends StatelessWidget {
1341 ), 1341 ),
1342 ), 1342 ),
1343 Spacer(), 1343 Spacer(),
1344 - Text(  
1345 - "预订$bookNum人 实到",  
1346 - style: TextStyle(  
1347 - color: MyColours.color_353535,  
1348 - fontSize: ScreenUtil().setSp(30)),  
1349 - softWrap: true,  
1350 - ), 1344 + bookNum == null || bookNum == ''
  1345 + ? Text(
  1346 + "实到",
  1347 + style: TextStyle(
  1348 + color: MyColours.color_353535,
  1349 + fontSize: ScreenUtil().setSp(30)),
  1350 + softWrap: true,
  1351 + )
  1352 + : Text(
  1353 + "预订$bookNum人 实到",
  1354 + style: TextStyle(
  1355 + color: MyColours.color_353535,
  1356 + fontSize: ScreenUtil().setSp(30)),
  1357 + softWrap: true,
  1358 + ),
1351 HEmptyView(10), 1359 HEmptyView(10),
1352 InkWell( 1360 InkWell(
1353 onTap: () { 1361 onTap: () {