我在imputer = imputer.fit(y.reshape(-1, 1))
y = imputer.transform(y.reshape(-1, 1))
的主屏幕上有一个TabBar()
。
在home.dart
中,我使用的home.dart
可以正常工作,
但现在在首页标签栏视图的第二个标签中,我需要另一个ExtendedTabBarView()
,这意味着:
以上是“首页”标签,在tab2中,我还需要另外2个标签:
现在,当我再换一个TabBarView()
时,出现了以下错误:
ExtendedTabBarView()
还有:
Failed assertion: line 1588 pos 12: '!_debugDoingThisLayout': is not true.
我正在使用全局键从主页调用函数
答案 0 :(得分:0)
不看代码很难给出准确的答案,但您可以检查是否在同一状态下定义了多个 GlobalKey()
对象。如果是这样,将需要全局键的每个子树分成单独的小部件会有所帮助。