我正在尝试使用颤振插件 HTTP 发出 HTTP POST 请求,但出现标题错误。有谁知道这是什么原因,因为在我的其他应用程序中这工作得很好?
await http.post(Uri.encodeFull("https://api.instagram.com/oauth/access_token"), body: {
"client_id": clientID,
"redirect_uri": redirectUri,
"client_secret": appSecret,
"code": authorizationCode,
"grant_type": "authorization_code"
});
Run Code Online (Sandbox Code Playgroud) 因此,我使用此代码创建了以下视图:
return Column(
children:[
Expanded(
child: gridView()
),
IconButton(
icon: Icon(Icons.add_box),
iconSize: 30,
onPressed: () {
_showPicker();
}
)
]);
Run Code Online (Sandbox Code Playgroud)
但是,我希望 IconButton 没有散布在整个屏幕上的白色背景。我将如何继续使它成为那样,而不是用 GridView 覆盖。Column 是一种错误类型的小部件吗?