flutter - “WIDGETS LIBRARY CUGHT CUGHT”即使是新创建的项目,每个项目都不会打印?什么?
问题描述
在我在一个项目中出错然后打印错误日志后:
I/flutter (13313): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (13646): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (13646): The following assertion was thrown building TabNavPage(dirty, state: _TabNavPageState#16407):
I/flutter (13646): Every item must have a non-null title
I/flutter (13646): 'package:flutter/src/material/bottom_navigation_bar.dart':
I/flutter (13646): Failed assertion: line 193 pos 9: 'items.every((BottomNavigationBarItem item) => item.title != null)
I/flutter (13646): == true'
I/flutter (13646):
I/flutter (13646): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (13646): more information in this error message to help you determine and fix the underlying cause.
I/flutter (13646): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (13646): https://github.com/flutter/flutter/issues/new?template=BUG.md
I/flutter (13646):
I/flutter (13646): The relevant error-causing widget was:
I/flutter (13646): TabNavPage file:///home/lfd/Desktop/works/flutter/trip/flutter_trip/lib/main.dart:11:13
尽管我修复了它并运行成功,但它仍然会打印错误。它也打印在一个新项目中,并且没有文件名 TabNavPage ... 那么错误日志文件存储在哪里?发生了什么??
解决方案
推荐阅读
- python - 复制具有指定扩展名的文件并保留文件夹树结构
- bixby - Bixby:希望在单击按钮时重定向到 Web 浏览器 url
- python - 如何使用 Selenium 和 python 在 Tor 浏览器中单击按钮
- java - wrap_content 或 match_parent 没有给出正确的结果
- javascript - 增量运算符在这里做什么以及它如何改变比例?
- java - 搜索 CRUD 教程
- c++ - 使用数据初始化向量不起作用 - push_back() 确实有效
- html - 在 Rmarkdown 中为文本着色失败:color-text.lua 在 RevealJS 中不起作用
- django - 我是否需要将 __init__.py 放在通向我的班级的目录树中的每个目录中?
- javascript - 在 VS Code 中调试 Node JS 应用程序时没有命中断点