小编Abb*_*Ali的帖子

颤振下拉对齐不正确

我想要像这样的下拉菜单并带有颤动

预期的:

落下

通过 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)

这可以通过下拉小部件实现吗?如果没有,我如何设计自定义下拉小部件?

谢谢

android dart mobile-development flutter

10
推荐指数
1
解决办法
2832
查看次数

在 Google Calendar Api 中将与会者设置为组织者

我正在使用 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)

我想让与会者成为组织者,以便他可以开始会议。我在请求负载中遗漏了某些内容吗?或者我需要授予他们许可吗?

javascript google-calendar-api google-api node.js

1
推荐指数
1
解决办法
2381
查看次数