腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
带有
int
项
的
DropdownButton
不起作用
,
它不
选择
新
值
dart
、
flutter
我需要创建
带有
int
项
的
DropdownButton
小部件,但
它不
能像预期
的
那样工作。代码如下:
DropdownButton
<
int
>( items: <
int
>[1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((
int
value) { return new Dr
浏览 30
提问于2019-01-26
得票数 0
回答已采纳
2
回答
如何在颤振
DropDownButton
中设置提示动态?
flutter
、
dart
、
input
、
setstate
、
dropdownbutton
我希望我
的
Dropdownbutton
按钮根据用户
选择
的
项目进行更改。final brutto_controller = TextEditingController();
int
formkey = GlobalKey<FormState>(); final steuerklassen = ['I', 'II', 'III',
浏览 1
提问于2020-12-03
得票数 0
回答已采纳
2
回答
获取颤动中选定DropdownMenuItem
的
值
dart
、
flutter
我正在尝试使用ListView.builder构建多个
DropdownButton
,只要用户单击浮动操作按钮
的
次数就相同 onPressednew Icon(Icons.add), itemBuilder: (BuildContext context,
int
itemCount: counter, scrollDirection: Axis.vertic
浏览 5
提问于2018-08-31
得票数 2
回答已采纳
2
回答
DropDownButton
选定
项
在UI中没有更改
dart
、
flutter
、
dropdownbutton
我想在我
的
DropDownButton
中添加
的
对象
int
id; value: car, ); });
浏览 0
提问于2019-03-27
得票数 0
回答已采纳
1
回答
颤振:失败
的
断言下拉列表
flutter
、
dart
我试图创建一个包含三个下拉按钮
的
行,但是这个错误我不明白为什么会出现 应该有一个具有
DropdownButton
值
的
项目: jan。检测到零或更多个DropdownMenuItems,其
值
为‘package:flutter/src/ Either /dropdown.dart. were’:失败断言:第805行pos 15:‘==空
值
\}(items.where)((DropdownMenuItem
项
){返回item.value ==<em
浏览 2
提问于2020-02-06
得票数 1
回答已采纳
1
回答
如何解决“应该有一个具有[
DropdownButton
]
值
的
项
:null”
的
错误?
flutter
、
flutter-layout
我想从数据库中获得一些细节,并将这些
值
放到下拉菜单中。我已经成功地从数据库中获取了我想要放到下拉列表中
的
信息,并将其放到下拉列表中。 这是我迄今编写
的
代码。responseSu
浏览 2
提问于2021-10-04
得票数 0
回答已采纳
1
回答
颤振- DrowpdownMunu
项
未从列表中填充
list
、
flutter
、
dropdownbutton
我被困在一个没有填充任何数据
的
DrowdownButton上。我
的
调试表明列表中有可以解析
的
数据。输出只产生一个空
的
DropdownButton
。children: <Widget>[ new
DropdownButton
items:
浏览 0
提问于2019-02-27
得票数 0
回答已采纳
2
回答
如何使用
DropDownButton
实现颤振中
的
动态列表?
flutter
、
android-studio
、
dart
、
dropdownbutton
我试图在我
的
应用程序中实现动态
dropdownButton
,其中下拉列表
的
项
将来自我
的
excel表中
的
列
的
名称。我能够显示excel
的
所有列,但无法跟踪用户从下拉列表中
选择
的
列
的
索引。我试着绘制一个这样
的
下拉子图,其中键是索引,
值
是DropdownMenuItem,如下所示: late
int
selectedIndex; /
浏览 2
提问于2022-02-11
得票数 0
回答已采纳
1
回答
我在pod 'DropDown‘中没有得到我
选择
的
值
ios
、
swift
、
xcode
、
cocoapods
、
dropdown
我已经在我
的
项目中安装了pod 'DropDown'。当我按下按钮时,它会显示
带有
月份列表
的
下拉列表,当我从列表中
选择
月份时,它应该会显示在按钮
的
位置,就像每个下拉菜单一样,但我无法获得我
选择
的
值
。= DropDown() dropDown.anchorView =
dropDownButton</
浏览 0
提问于2019-08-05
得票数 0
2
回答
如何重写InventoryCD编号序列
acumatica
我有一个请求,要根据为
新
项
选择
的
类更改
新
项
的
编号排序器。因此,用户
选择
一个特定
的
类,系统需要使用在preferences表单中在字段上设置
的
数字序列来查找InventoryItem.InventoryCD
的
下一个
值
。蒂娅!
浏览 4
提问于2021-11-09
得票数 3
1
回答
将选定
的
值
传递回父组件React Hook
reactjs
、
react-native
、
react-hooks
我有一个翻译器组件,它有一个LanguageSelector组件,它基本上只是一个
带有
预定义
的
值
的
下拉菜单。我想根据我从LanguageSelector
的
下拉列表中
选择
的
值
来更新我在Translator中
的
selectedLanguage状态。我试图从翻译器传递一个回调函数,但似乎
不起作用
。你能看一下我
的
代码并给我指出一个开始
的
方向吗?from "react-bootst
浏览 15
提问于2020-09-23
得票数 1
回答已采纳
2
回答
颤振
DropdownButton
未被setState更新
android
、
flutter
当我从下拉列表中
选择
新
项
时,_selectedCurrency
的
值
将被更新,但是下拉按钮本身没有更新。显示
的
项目总是美元。); void initState() { _selectedCurrency = value;
浏览 0
提问于2019-09-07
得票数 0
3
回答
颤振
DropdownButton
不允许我从下拉列表中
选择
不同
的
值
flutter
、
dart
、
dropdown
这是我
的
密码 value: map['completedVersion'].toInt(), //selected; i <= map['requiredVersion']; i++) i] .map<DropdownMenuItem<
int
>>((
int
value) {completedV
浏览 3
提问于2022-10-17
得票数 0
2
回答
是否可以为ToolstripComboBox菜单项添加快捷键?
c#
、
winforms
它不起作用
。你能让我走正确
的
路吗。在第一个触发器中,KeyEventArgs提供控制键
的
数据。因此,无法获得按下
的
键是Alt键还是控制键。
浏览 4
提问于2020-08-11
得票数 0
21
回答
颤振:应该有一个具有[
DropdownButton
]
值
的
项目。
flutter
、
dart
、
drop-down-menu
、
dropdownbutton
、
flutter-futurebuilder
我从我
的
数据库中得到一个列表,然后我将这个列表传递给我
的
dropdownButton
--everything works,数据显示为预期
的
,但是,当我从其中
选择
一个元素时,会得到以下错误: return
浏览 24
提问于2020-03-03
得票数 59
回答已采纳
1
回答
下拉列表在所选索引更改后返回到第一个
值
c#
、
asp.net
我有一个
带有
按钮事件
的
下拉列表,它应该发送textbox.But
的
值
,即使我
选择
的
值
不是DDL中
的
第一个
值
,它也只发送DDL中第一个
项
的
值
。我被告知要在页面加载中添加!IsPostBack,但
它不起作用
。ddlQuestoes.Items.Clear();
浏览 0
提问于2019-11-28
得票数 0
2
回答
如何用
新
图像更新网格视图
android
、
gridview
、
xamarin
gridview.Adapter = null; gridview.Adapter = adapter; 我将
带有
新
值
的
列表发送给映像适配器,它会对
值
进行排序并返回这些
项
,因为图像和all都是好
的
。但是当我想刷新这些项目时,旧
的
就会保持不变,
新
的
也不会出现在屏幕上。我尝试过很多不同
的
方法来重新加载
浏览 3
提问于2014-07-25
得票数 1
回答已采纳
1
回答
如何在按下后退按钮时清除所有意图变量?
android
、
android-intent
当应用程序启动时,它启动活动A,它
的
信息显示列表。当我从B按下back按钮并转到A,并再次从列表中
选择
新
项
时,旧
的
选择
项
仍在string变量中。 我尝试了以下代码,但
它不起作用
。protected void onActivityResult(
浏览 0
提问于2015-07-28
得票数 0
1
回答
在
选择
值
(
DropdownButton
)返回错误时,使用sqflite填充OnChange
flutter
、
dart
、
flutter-dropdownbutton
]'s value: return
DropdownButton
bool operator ==(o) => o is registro_categoria &&
浏览 3
提问于2022-03-16
得票数 1
回答已采纳
2
回答
向
DropDownButton
添加单独
的
值
flutter
、
dart
、
flutter-layout
我有一个
带有
项目生成器
的
小部件。在项目生成器中,我希望为每个项目创建下拉列表。对于这个DropdownMenuItem
的
DropdownMenuItem属性,我使用SaleRef _selectedRef;,我能做些什么来在每个下拉列表中
选择
单独
的
值<
浏览 4
提问于2020-04-03
得票数 0
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
腾讯会议
活动推荐
运营活动
广告
关闭
领券