尝试调用initState()时,Flutter返回错误'_debugLifecycleState == _StateLifecycle.created': is not true.@override super.initState();
todayTask.clear();()时未出现错误。: 'package:<e
但是,当我在打开时将从portait切换到横向时,我得到了"setState()或在小部件树被锁定时调用的markNeedsBuild()“的错误,堆栈提供了以下信息:
Built build\app\: line 3424 pos 12: '_debugLifecycleState !assertion: line 3424 pos 12: '_debugLifecycleState !assertion: line 3424 pos 12: '_debugLifecycleState</e
我正在从firebase获取DropdownMenuItem的列表,如果我在构建中使用provider,它不会返回null,但是在initstate中,即使我设置了listen值,false也会返回nulldropdownMenuItem = dropdownmenuoptions.first; super.initState();以下是错误消息:
The following NoSuchM