问题描述
我在表单中实现了一个基本的下拉菜单,但没有获得预期的 UI。我想要这样的东西
DropdownButtonFormField(
items: genderList
.map((String value) => DropdownMenuItem<String>(
value: value,child: Text(value)))
.toList(),decoration: Inputdecoration(
border: OutlineInputBorder(),labelText: 'State',),onChanged: (value) {
setState(() {
initGenderValue = value;
});
},
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)