我有一个TabBarView,主部件中有两个选项卡。第一个选项卡包括带有卡片的网格视图。卡片使用父小部件(MyHomePage)作为侦听器来监听卡内按钮的点击.当我点击某些卡片上的按钮时,侦听器就会推动。必须打开第二个标签,并通过选定的旅行到它。如果我调整浏览器的大小,它将调用全局重建,currentExcursion将达到最后的构建值。toJson()}");
// At this point, after call setState() in HomePage w
} The following assertion was thrown while dispatching notifications for MyCurrentTrack:
setStateThe widget on which setState() or markNeedsBuild() was called was: _InheritedProviderScope<MyCurrentTrack