断言失败:布尔表达式不能为null

时间:2020-10-06 17:46:35

标签: flutter dart

我是扑朔迷离的新手,每当我尝试从应用程序添加新图像时,都会显示“布尔表达式不能为空”。我该如何解决?

@override
Widget build(BuildContext context) {
  return (load || load1)
    ? loader2
    : SafeArea(
      child: WillPopScope(
        onWillPop: WillPopMethod,
        child: Scaffold(
          body: SingleChildScrollView(
            child: columnUserProfile(
              languageList,
              id,
              name,
              list,
              indexSelected,
              complaints,
              gate,
              booking,
              residence_id,
              paymentStatus,
              status,
              widget.phone,
              gender,
              widget.societyName,
              apartment_name,
              residence_name,
              vehicles),
          ),
        ),
      ),
    );
}

0 个答案:

没有答案