腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
如
何在
Flutter
中
设置
showDialog
()
方法
中
的
DropdownButton
的
值
?
、
我试图在
showDialog
()
方法
中
设置
下拉菜单
的
值
,但因为它不在build
方法
中
,所以无法
设置
当前
值
的
状态。那么有没有解决这个问题
的
办法呢?这是我
的
代码
showDialog
( context: context, builder: (cont
浏览 14
提问于2020-09-10
得票数 0
1
回答
DropdownButton
不更改onChanged上
的
值
、
、
在从下拉列表中进行另一个选择之后,
DropdownButton
不会更改下拉列表
的
值
。下面是我
的
密码。Flexible( padding: EdgeInsets.fromLTRB(0.0, 0.0, 10.0, 0.0), }); value: wd,) 在initState
浏览 0
提问于2019-05-06
得票数 1
1
回答
如何将
DropdownButton
的
第一项
设置
为来自第一个API
的
值
,而将其余
的
项
设置
为来自第二个API
的
值
?
中
:女士主席女士
DropdownButton
:这是我得到
的
错误: lib/account/updateProfileTab/DropDownPage2.dart:155:28:错误:不能将'List>‘类型
的
值
分配给'DropdownMenuItem’类型
的
变量。'DropdownMen
浏览 0
提问于2019-08-21
得票数 0
回答已采纳
1
回答
如
何在
Flutter
中
获取TextField
中
的
DropDown
、
我在
Flutter
中有一个应用程序,我想添加一个TextField,它里面嵌有一个浮动菜单,TextField应该作为
DropDownButton
中
的
一个过滤器,有点像this,但是浮动菜单出现在字段上和一个可以选择嵌套项
的
dropDownButton
。如
何在
TextField
中
添加
dropDownButton
并在嵌套列表中进行搜索?
浏览 27
提问于2019-06-28
得票数 1
回答已采纳
2
回答
使用RenderFlex小部件时,右侧无限像素溢出
的
DropdownButton
、
、
当我创建一个下拉按钮小部件时,我看到了这样
的
错误: RenderFlex在右边被无限像素溢出。(items: genderList, onChanged: null), ), }在我构建程序之后,我没有在应用程序上看到任何
DropDownButton
将文件同步到为x86构建
的
。在5,558 in
中
重新启动应用程序。RawGestureDetector ← GestureDetector ← Semantics ←
DropdownButton
<
浏览 1
提问于2018-12-28
得票数 4
回答已采纳
1
回答
DataTable
中
的
Flutter
DropdownButton
,列表
中
的
DropdownButton
选项
、
、
、
在
flutter
中
,我尝试让DataTable
的
其中一列成为
DropdownButton
。因此,我希望能够将
DropdownButton
单元格
的
值更改为ratingList
中
的
任何
值
:“Ok”、“Good”、“Great”、“Amazing”;注意,我希望能够选择“Good”或“Amazing”,这些不是初始填充
的
值
之一。从getUsers加载数据是很重要
的
,因为最终会从Fires
浏览 11
提问于2020-10-13
得票数 0
回答已采纳
2
回答
是否可以在
Flutter
中
要求将下拉选择作为表单验证
的
一部分?
、
我熟悉在
Flutter
中使用TextFormField进行表单验证,但是是否可以将
DropdownButton
集成到表单
中
,并要求在提交之前选择其中一个
值
?基本上,将
DropdownButton
验证集成到这个基本
的
颤动验证示例
中
:
浏览 0
提问于2018-10-05
得票数 7
1
回答
如
何在
flutter
中
设置
下拉菜单
的
初始
值
?
、
、
如
何在
flutter
中
设置
下拉菜单
的
初始
值
?new DropdownButtonHideUnderli
浏览 2
提问于2018-07-27
得票数 5
回答已采纳
6
回答
在应用程序主屏幕上自动显示颤振提示对话框
、
、
如果在app状态
中
设置
了一个标志,则会显示数据警告对话框,否则它不会。下面是我想要显示
的
示例警报对话框 //
flutter
defined function contextcontext).pop(); ), ); );我试图在主屏幕小
浏览 1
提问于2018-09-04
得票数 45
回答已采纳
4
回答
Flutter
DropdownButtonFormField.onChanged不更新UI
我有一个带DropdownButtonFormField
的
屏幕String _value; ...{ }); setState(() { });在项目列表中有一个特殊
的
项目“创建新
的
”。当点击时,一个新
的
项目将被添加到列表
中
,我希望它被选中,而不是选择“创
浏览 0
提问于2020-06-01
得票数 0
1
回答
如
何在
flutter
中
手动显示/关闭
DropdownButton
?
我需要更灵活地在
flutter
中
显示/关闭
DropdownButton
的
选项列表。我希望能够显示/隐藏
DropdownButton
作为一些其他用户操作
的
结果,而不是单击它。这些
方法
似乎并没有在文档
中
公开。做这件事
的
好
方法
是什么?
浏览 0
提问于2018-09-17
得票数 4
2
回答
在所选
值
颤动下方打开DropDown
我需要在所选
值
下面显示下拉菜单。我们如
何在
flutter
中
像在android中一样
设置
下拉垂直偏移。有没有一种不创建自定义下拉菜单
的
简单
方法
?图像已附加,并且 下面是我
的
下拉代码: Container(
浏览 13
提问于2021-01-11
得票数 0
1
回答
在选择另一项时,颤振部件测试不会触发
DropdownButton
.onChanged。
、
、
我正在编写一个颤振
的
web应用程序,并在我
的
代码库
中
添加一些小部件测试。我很难使
flutter
_test按预期工作。当前我面临
的
问题是试图在
DropdownButton
中选择一个
值
。Card( children: [ child:
DropdownButton
],
浏览 8
提问于2020-10-22
得票数 6
回答已采纳
2
回答
如何禁用颤振
中
的
任何小部件?
在我
的
应用程序
中
,我需要禁用许多小部件很多次。但我找不到方便
的
方法
去做吗?我很感谢你
的
帮助。谢谢!
浏览 3
提问于2020-10-19
得票数 6
回答已采纳
2
回答
如
何在
颤振中使用块正确
设置
DropdownButton
的
值
?
、
、
我是Bloc编程模式
的
新手,在使用我
的
bloc类
中
的
Dropdown时遇到了一个问题:Stream<String'Four', Stream<List<String>> get dropdownValuesStream => _dropdownValues.stream; 在我
的
小部件页面
中
<em
浏览 0
提问于2018-12-19
得票数 9
5
回答
initState
方法
中
的
Flutter
showDialog
(context)
我尝试使用
showDialog
(context, builder)在用户导航到某个页面时显示问候消息。在
Flutter
中有没有办法访问initState()
方法
中
的
context? 如果没有,有没有其他更好
的
方法
来实现这种行为呢
浏览 3
提问于2018-08-09
得票数 14
1
回答
Flutter
:在
flutter
中
,是否可以在另一个
dropdownbutton
按钮满足特定要求后显示另一个
dropdownbutton
按钮
、
例如,这是第一个下拉按钮对不起,我没有足够
的
声誉来张贴图片 标签将是Select A Region,另一个标签将显示哪些城市将被列出,这取决于上面选择
的
区域。
浏览 2
提问于2018-07-28
得票数 1
回答已采纳
2
回答
颤动
中
带有调整下拉箭头图标的全宽
DropdownButton
、
、
我还需要在
Flutter
中
添加带有调整下拉箭头图标的全宽度
DropdownButton
。但许多人尝试了很多
方法
,但它并没有完全扩展它
的
宽度。这是我
的
DropdownButton
代码 child: new Column( new
DropdownButton
浏览 3
提问于2018-08-14
得票数 54
回答已采纳
1
回答
颤动时DropDown菜单
中
的
状态出现问题
、
、
、
、
我在管理我
的
下拉列表
的
状态时遇到了麻烦,我
的
问题是,当我再次更改第一个
的
选项时,要清除第二个。如果我更新了第一个
的
值
,我尝试将第二个
的
值
设置
为null,但即使它仍然有问题。import 'package:
flutter
/material.dart'; import '
浏览 0
提问于2021-04-08
得票数 2
1
回答
颤振
DropdownButton
中
的
DataTable
、
、
、
在“颤栗”
中
,我试图让DataTable
的
一个列是一个
DropdownButton
,用户可以从
DropdownButton
中进行选择,它可以更改单元格
值
(而不是任何其他单元格,所以根本不要更改第一列
中
的
值
例如,请参阅下面的代码(
DropdownButton
不更改单元格
值
),也是在
中
。 Widget build(BuildContext context) { r
浏览 3
提问于2020-10-12
得票数 3
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券