我正在尝试向 Binance API 发送 GET 请求。但我在终端中得到以下输出而不是数据:
Response { url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("api.binance.com")), port: None, path: "/api/v3/exchangeInfo", query: Some("symbol=BNBBTC"), fragment: None }, status: 200, headers: {"content-type": "application/json;charset=UTF-8", "content-length": "1515", "connection": "keep-alive", "date": "Thu, 23 Dec 2021 23:28:24 GMT", "server": "nginx", "vary": "Accept-Encoding", "x-mbx-uuid": "1244d760-2c41-46df-910f-b95c4a312bc2", "x-mbx-used-weight": "10", "x-mbx-used-weight-1m": "10", "strict-transport-security": "max-age=31536000; includeSubdomains", "x-frame-options": "SAMEORIGIN", "x-xss-protection": "1; mode=block", "x-content-type-options": "nosniff", "content-security-policy": "default-src 'self'", "x-content-security-policy": "default-src 'self'", "x-webkit-csp": "default-src 'self'", "cache-control": "no-cache, no-store, must-revalidate", "pragma": …Run Code Online (Sandbox Code Playgroud) 我正在尝试为应用程序使用自定义颜色主题。
\n\n这是 main.dart 文件
\n\nimport \'package:flutter/material.dart\';\n\nimport \'pages/HomePage.dart\';\n\nvoid main() => runApp(new MyApp());\n\nclass MyApp extends StatelessWidget {\n // This widget is the root of your application.\n @override\n Widget build(BuildContext context) {\n return new MaterialApp(\n title: \'Flutter Demo\',\n debugShowCheckedModeBanner: false,\n theme: new ThemeData(\n // This is the theme of your application.\n //\n // Try running your application with "flutter run". You\'ll see the\n // application has a blue toolbar. Then, without quitting the app, try\n // changing the primarySwatch below to …Run Code Online (Sandbox Code Playgroud)