我想要像这样的下拉菜单并带有颤动
预期的:
通过 flutter dropdownformfield 我可以做类似的事情
如您所见,当我单击下拉按钮时,菜单项与按钮重叠。请找到下面的代码
DropdownButtonFormField(
isExpanded: false,
isDense: true,
items: classes.map((category) {
return new DropdownMenuItem(
value: category,
child: Row(
children: <Widget>[
Text(category),
],
));
}).toList()
,
onChanged: (newValue) {
// do other stuff
},
value: _classroom,
decoration: InputDecoration(
contentPadding: EdgeInsets.fromLTRB(10, 0, 10, 0),
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.white)),
hintText: "Select Class",
hintStyle: TextStyle(
color: Colors.grey[600],
),
),
)
Run Code Online (Sandbox Code Playgroud)
这可以通过下拉小部件实现吗?如果没有,我如何设计自定义下拉小部件?
谢谢
我正在使用 googleapis npm 包来创建日历事件。这是我为 calendar.events.insert 创建事件的请求负载。
{
"summary":"Biology class",
"location":"Google Meet: Please follow the google meet url",
"description":"Unit and Measurements",
"colorId":2,
"start":{"dateTime":"2020-06-13T11:00:00+05:30","timeZone":"Asia/Kolkata"},
"end":{"dateTime":"2020-06-13T12:00:00+05:30","timeZone":"Asia/Kolkata"},
"attendees":[
{"email":"attendee1@gmail.com"},
{"email":"attendee2@gmail.com","organizer":true}
],
"reminders":{
"useDefault":false,
"overrides":[{"method":"email","minutes":10},{"method":"popup","minutes":10}]
},
"creator": {
"email": "attendee2@gmail.com",
"self": true
},
"organizer":{
"email":"attendee2@gmail.com",
"self":true
}
}
Run Code Online (Sandbox Code Playgroud)
我想让与会者成为组织者,以便他可以开始会议。我在请求负载中遗漏了某些内容吗?或者我需要授予他们许可吗?