英文:
After Flutter 3.0 update fluttertoast library start showing this error TypeError: Cannot read properties of null (reading 'exports')
问题
把 Flutter 升级到最新的稳定渠道后,fluttertoast库开始显示此错误,当我调用showToast方法时,它显示以下错误:
TypeError: 无法读取 null 的属性(读取 'exports')
assets/packages/fluttertoast/assets/toastify.js 14:48
assets/packages/fluttertoast/assets/toastify.js 14:90
ReferenceError: Toastify 未定义
英文:
After upgrading flutter to latest stable channel fluttertoast library start showing this error and when i call methode showToast it show below error
TypeError: Cannot read properties of null (reading 'exports')
assets/packages/fluttertoast/assets/toastify.js 14:48 <fn>
assets/packages/fluttertoast/assets/toastify.js 14:90 <fn>
ReferenceError: Toastify is not defined
答案1
得分: 3
Early fix by shivbo96. his commit hash is 3362fbe84cde30bd68875f1e04c214c72b054fd9
link https://github.com/ponnamkarthik/FlutterToast/commit/3362fbe84cde30bd68875f1e04c214c72b054fd9
英文:
Early fix by shivbo96. his commit hash is 3362fbe84cde30bd68875f1e04c214c72b054fd9
link https://github.com/ponnamkarthik/FlutterToast/commit/3362fbe84cde30bd68875f1e04c214c72b054fd9
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论