但是,在传递完所有演示屏幕后,即当isSkipped的值为true时,就会出现一个错误。我所犯的错误:
FlutterError (setState() called after dispose(): _welcomeScreen_1State#7c0ca(lifecycle state:The preferred solution is to cancel the timer or stop listening to the animation in the dispose() callbackTo avoid memo
我在componentDidMount生命周期挂钩中进行api调用,然后根据获取的数据更新组件的状态。
警告:setState(.)这通常意味着在未挂载的组件上调用setState()。这是禁止行动。请检查LanguageSelect组件的代码。// the Array.map is just to restructure the data fetche