首页 > 解决方案 > “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 ... 那么错误日志文件存储在哪里?发生了什么??

标签: flutter

解决方案


推荐阅读