我使用底部导航栏,内部我使用标签栏。但是标签栏有交换行为。我想禁用交换行为。所以,我使用了NeverScrollableScrollPhysics,但这显示了一个错误。错误是Multiple widgets used the same GlobalKey。我为每个选项卡栏视图项目提供了不同的键,但同样的问题也出现了。下面是我的代码: Widget build(BuildContext context) {
以下最低可复制的虚拟代码引发此错误:Multiplewidgets used the same GlobalKey.
═══════════════════════════════════════════════════════════════════used the same GlobalKey.,只有一个小部件使用这个键,
我用的是颤音。我有一个简单的应用程序与3个标签。每个选项卡中都有一个RefreshIndicator和一个ListView。行是在另一种方法中生成的。= new GlobalKey<RefreshIndicatorState>();
final GlobalKey<RefreshIndicatorState> _RIKey2 = new GlobalKeyused the same GlobalKey.键是在Build方法中生成的
在表单之间切换时收到的错误是:Multiple widgetsused the same GlobalKey.The parents of those widgets were different widgets that both had the following description:
RegisterPage现在是类似的,但是解决方案不起作用,因为我需要
在同一个文件中有多个测试,并且一个接一个地运行测试时。某些类型的测试会失败,但当单独运行时,相同的测试会通过。═══════════════════════════════The finder "zero widgets)" (used in a
call to "tap()") could not find any matching widgets</e