Flutter 集成测试失败,错误为“_pendingFrame == null”:不是 true。

Vof*_*fch 7 flutter

TextInput我正在为我的 flutter 应用程序创建集成测试,但在查找并尝试在其中输入时收到此错误。\n错误:'package:flutter_test/src/binding.dart': Failed assertion: line 1649 pos 12: '_pendingFrame == null': is not true.

\n

代码:

\n
final Finder email = find.byWidgetPredicate(\n      (widget) => widget is FutXTextField && widget.title == 'EMAIL',\n    );\n\nexpect(email, findsOneWidget,\n        reason: " S\xc3\xb3 pode haver um bot\xc3\xa3o de escrever email");\n\nawait tester.enterText(email, "teste@teste.teste");\n
Run Code Online (Sandbox Code Playgroud)\n

我在互联网上没有找到这个错误是什么。

\n

有没有人以前遇到过这个异常并且知道如何解决它?

\n

小智 6

当我运行测试的应用程序抛出异常时,我遇到了同样的错误,如果您检查日志,您是否会看到测试失败之前发生的任何错误?