width: ScreenUtil.getInstance().setWidth(110), //报错 height: ScreenUtil.getInstance().setHeight(110), //报错
错误:The method 'getInstance' isn't defined for the type 'ScreenUtil'.
修改成:
width: ScreenUtil().setWidth(110), height: ScreenUtil().setHeight(110),