我正在尝试使用本地json文件中的名称创建一个DropdownButton ...我正在使用futurebuilder来做到这一点..我得到了错误 从我的调试试验中,我了解到这是因为对null的调用.════════════════════════════════════════
I/flutter (28709): The following NoSuchMethodError was thrown(28709): The
我尝试在颤振中设置下拉按钮的值。实际上,它从列表中获取项值。当我在Dropdownbutton按钮中添加value: _cStatus,时,收到以下错误消息:
应该正好有一个具有DropdownButton值的项:。检测到零或更多个DropdownMenuItems,其值为‘package:flutter/src/ Either /<
Either zero or 2 or more [DropdownMenuItem]s were detected with the same valueFailed assertion: line 827 pos 15: 'items == null || items.isEmpty || value == null}).lengt