Go后端Flutter / Dart前端中的发布请求问题

I am new to Flutter/Dart, Go and mobile development in general. I am currently coding a login authentication page in flutter that connects to a backend written in go. To check if everything worked I wanted to print out the cookie that my backend sends back in the console. Unfortunately I am getting errors not sure what to do.

EDIT: I have been able to read the cookie, should I save the cookie in this format "session=UUID" or just the "UUID"? I want to send this cookie back in the header for future get requests. My Go code will check for the cookie name "session",but I'm not sure if sending it back in that format is correct.

Flutter code (I read on another stackoverflow post to use 10.0.2.2 as localhost when using an android emulator):

EDIT: After playing around with the code I was able to read the cookie in the header but it has the name as well not just the UUID.

import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';



class Login extends StatefulWidget {
  @override
  State<StatefulWidget> createState(){
    return new LoginState();
  }
}


class LoginState extends State <Login> {

  final formKey = GlobalKey<FormState>();
  String _email, _password;
  String cookie;



  void loginApi(){
    var form = formKey.currentState;
    var url = "http://10.0.2.2:8080";
      if (form.validate()) {
        form.save();
        var body = { "Email":_email, "Pass":_password};
        http.post(url,body:json.encode(body)).then((response){
          print(response.headers['set-cookie']);
        });
      }
  }

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text("Login"),
        backgroundColor: Colors.white,
      ),
      body: new Container(
        alignment: Alignment.center,
        child: Form(
            key: formKey,
            child: Column(
              children: <Widget>[

                TextFormField(
                  autocorrect: false,
                  decoration: InputDecoration(
                    labelText: "Email:",
                  ),
                  validator: (str) =>
                  !str.contains('@') ? "Not a Valid Email!" : null,
                  onSaved: (str) =>  _email = str,
                ),

                TextFormField(
                  autocorrect: false,
                  decoration: InputDecoration(
                    labelText: "Password:",
                  ),
                  validator: (str) =>
                  str.length <= 7 ? "Not a Valid Password!" : null,
                  onSaved: (str) => _password = str,
                  obscureText: false,
                ),

                RaisedButton(
                  child: Text("Submit"),
                  onPressed:loginApi,
                ),
              ],
            )
        ),
      ),


    );
  }
}

Golang code (EDIT: Inserted a missing curly bracket after the panic error and deleted the curly bracket at the end of the code):

package main

import (
    "encoding/json"
    "html/template"
    "net/http"

    uuid "github.com/satori/go.uuid"
    "golang.org/x/crypto/bcrypt"
)

type user struct {
    UserName string //Same as email
    Password []byte
}

type logindata struct {
    Email string
    Pass  string
}

var tpl *template.Template
var dbUsers = map[string]user{}
var dbSess = map[string]string{}

func init() {
    bs, _ := bcrypt.GenerateFromPassword([]byte("password"), bcrypt.MinCost)
    dbUsers["test@test.com"] = user{"test@test.com", bs}
}

func main() {
    http.HandleFunc("/", login)
    http.Handle("/favicon.ico", http.NotFoundHandler()) //Don't have favicon
    http.ListenAndServe(":8080", nil)
}

func login(w http.ResponseWriter, req *http.Request) {
    var data logindata

    decoder := json.NewDecoder(req.Body)
    err_decode := decoder.Decode(&data)
    if err_decode != nil {
        panic(err_decode)
    }
    u, ok := dbUsers[data.Email]
    if !ok {
        http.Error(w, "Username and/or password do not match", http.StatusForbidden)
        return
    }

    err_compare := bcrypt.CompareHashAndPassword(u.Password, []byte(data.Pass))
    if err_compare != nil {
        http.Error(w, "Username and/or password do not match", http.StatusForbidden)
        return
    }

    // create session
    sID, _ := uuid.NewV4()
    c := &http.Cookie{
        Name:  "session",
        Value: sID.String(),
    }
    http.SetCookie(w, c)
    dbSess[c.Value] = data.Email
    return

}

Output from console for flutter code (after I put in username and password and click submit, username is "test@test.com" password is "password"):

Performing hot reload...
Reloaded 0 of 489 libraries in 544ms.
I/flutter ( 3778): session=db3690d6-db6e-4658-8b5b-5f2d3f908a65

I also went to localhost:8080 on my browser expecting to show a blank page but it displayed "page not working" and my terminal outputted the following error I guess because I was accessing it with a browser and I wasn't sending in JSON data, not sure:

2018/05/24 23:29:38 http: panic serving [::1]:40010: EOF
goroutine 6 [running]:
net/http.(*conn).serve.func1(0xc82001a280)
    /usr/lib/go-1.6/src/net/http/server.go:1389 +0xc1
panic(0x76c6c0, 0xc82000a160)
    /usr/lib/go-1.6/src/runtime/panic.go:443 +0x4e9
main.login(0x7f96c9a848b8, 0xc82012c000, 0xc8201121c0)
    /home/daniel/Desktop/Workspace/Genesis/main.go:43 +0x176
net/http.HandlerFunc.ServeHTTP(0x8a8688, 0x7f96c9a848b8, 0xc82012c000, 0xc8201121c0)
    /usr/lib/go-1.6/src/net/http/server.go:1618 +0x3a
net/http.(*ServeMux).ServeHTTP(0xc820013020, 0x7f96c9a848b8, 0xc82012c000, 0xc8201121c0)
    /usr/lib/go-1.6/src/net/http/server.go:1910 +0x17d
net/http.serverHandler.ServeHTTP(0xc82001a100, 0x7f96c9a848b8, 0xc82012c000, 0xc8201121c0)
    /usr/lib/go-1.6/src/net/http/server.go:2081 +0x19e
net/http.(*conn).serve(0xc82001a280)
    /usr/lib/go-1.6/src/net/http/server.go:1472 +0xf2e
created by net/http.(*Server).Serve
    /usr/lib/go-1.6/src/net/http/server.go:2137 +0x44e
2018/05/24 23:29:38 http: panic serving [::1]:40012: EOF
goroutine 18 [running]:
net/http.(*conn).serve.func1(0xc82011c080)
    /usr/lib/go-1.6/src/net/http/server.go:1389 +0xc1
panic(0x76c6c0, 0xc82000a160)
    /usr/lib/go-1.6/src/runtime/panic.go:443 +0x4e9
main.login(0x7f96c9a848b8, 0xc8201161a0, 0xc820154000)
    /home/daniel/Desktop/Workspace/Genesis/main.go:43 +0x176
net/http.HandlerFunc.ServeHTTP(0x8a8688, 0x7f96c9a848b8, 0xc8201161a0, 0xc820154000)
    /usr/lib/go-1.6/src/net/http/server.go:1618 +0x3a
net/http.(*ServeMux).ServeHTTP(0xc820013020, 0x7f96c9a848b8, 0xc8201161a0, 0xc820154000)
    /usr/lib/go-1.6/src/net/http/server.go:1910 +0x17d
net/http.serverHandler.ServeHTTP(0xc82001a100, 0x7f96c9a848b8, 0xc8201161a0, 0xc820154000)
    /usr/lib/go-1.6/src/net/http/server.go:2081 +0x19e
net/http.(*conn).serve(0xc82011c080)
    /usr/lib/go-1.6/src/net/http/server.go:1472 +0xf2e
created by net/http.(*Server).Serve
    /usr/lib/go-1.6/src/net/http/server.go:2137 +0x44e
2018/05/24 23:29:43 http: panic serving [::1]:40016: EOF
goroutine 7 [running]:
net/http.(*conn).serve.func1(0xc82001a380)
    /usr/lib/go-1.6/src/net/http/server.go:1389 +0xc1
panic(0x76c6c0, 0xc82000a160)
    /usr/lib/go-1.6/src/runtime/panic.go:443 +0x4e9
main.login(0x7f96c9a848b8, 0xc82012c1a0, 0xc8201122a0)
    /home/daniel/Desktop/Workspace/Genesis/main.go:43 +0x176
net/http.HandlerFunc.ServeHTTP(0x8a8688, 0x7f96c9a848b8, 0xc82012c1a0, 0xc8201122a0)
    /usr/lib/go-1.6/src/net/http/server.go:1618 +0x3a
net/http.(*ServeMux).ServeHTTP(0xc820013020, 0x7f96c9a848b8, 0xc82012c1a0, 0xc8201122a0)
    /usr/lib/go-1.6/src/net/http/server.go:1910 +0x17d
net/http.serverHandler.ServeHTTP(0xc82001a100, 0x7f96c9a848b8, 0xc82012c1a0, 0xc8201122a0)
    /usr/lib/go-1.6/src/net/http/server.go:2081 +0x19e
net/http.(*conn).serve(0xc82001a380)
    /usr/lib/go-1.6/src/net/http/server.go:1472 +0xf2e
created by net/http.(*Server).Serve
    /usr/lib/go-1.6/src/net/http/server.go:2137 +0x44e
drevls8138
drevls8138 好决定!我现在使用原始JSON时,我的发帖请求在邮递员上工作。我仍然遇到错误,但会更新我的问题详细信息。
大约 2 年之前 回复
dtqf81594
dtqf81594 在您的go代码下,您确定已将右括号放在正确的位置吗?在恐慌(错误)行对我来说很奇怪之后,您没有关闭它。其余代码无法访问
大约 2 年之前 回复
dongpo8702
dongpo8702 我似乎无法对print(response.headers)进行编码,它强调了响应说“未定义的名称响应”
大约 2 年之前 回复
dpdbu24262
dpdbu24262 看起来好像不是错误,只是response.headers['session']返回null。
大约 2 年之前 回复
duandiao3961
duandiao3961 在我的loginApi函数中,我将debugPrint(cookie)更改为print(cookie),在输入用户名和密码后,控制台的输出仅向我显示了此信息:执行完全重启...在2049ms内重新启动了应用程序。W/IInputConnectionWrapper(5490):非活动InputConnectionI/flutter上的getCursorCapsMode(5490):null
大约 2 年之前 回复
duanhua9398
duanhua9398 看起来好像不是错误。
大约 2 年之前 回复
duanhuancong1969
duanhuancong1969 它显示为错误:I/flutter(5490):对于print(cookie)为null,我现在将尝试另一个
大约 2 年之前 回复
doupuchao4256
doupuchao4256 您可以尝试使用print(cookie)代替debugPrint(cookie)还是可以使用print(response.headers);?我的印象是页眉中有些混乱。
大约 2 年之前 回复
dtxzwdl08169
dtxzwdl08169 debugPrint(饼干);我为凸起按钮的onPressed字段所做的loginApi函数的一部分
大约 2 年之前 回复
duanhao1004
duanhao1004 Login.dart:32:19在哪一行?
大约 2 年之前 回复
dqkf49487
dqkf49487 是的,我点击了提交按钮
大约 2 年之前 回复
dsnd7200
dsnd7200 您在点击什么以获取此错误?
大约 2 年之前 回复

1个回答



在您的代码中</ p>

  http.post(url,body:json.encode  (body))。then((http.Response response){
cookie = response.headers ['session'];
});
debugPrint(cookie);
</ code> </ pre> \ n

行</ p>

  debugPrint(cookie); 
</ code> </ pre>

之前执行 </ strong> </ p>

  cookie = response.headers ['session']; 
</ code> </ pre>

当您打印它时, cookie </ code>为 null </ code>。 出于某些奇怪的原因, debugPrint(null)</ code>引发了有关“狭缝分割”的异常</ p>

尝试</ p>

  http.post(URL,body:json.encode(body))。then((http.Response response){
cookie = response.headers ['session'];
debugPrint(cookie);
}) ;
</ code> </ pre>
</ div>

展开原文

原文

In your code

    http.post(url,body:json.encode(body)).then((http.Response response){
      cookie = response.headers['session'];
    });
    debugPrint(cookie);

the line

debugPrint(cookie);

is executed before

cookie = response.headers['session'];

so it is expected that cookie is null when you print it. For some weird reason debugPrint(null) throws an exception about "slit on null"

Try instead

    http.post(url,body:json.encode(body)).then((http.Response response){
      cookie = response.headers['session'];
      debugPrint(cookie);   
    });

douniangliao4327
douniangliao4327 是的,它向我展示了这一点:E / flutter(5490):[错误:topaz / lib / tonic / logging / dart_error.cc(16)]未处理的异常:E / flutter(5490):NoSuchMethodError:调用了方法'split' 在null上。 E / flutter(5490):接收方:空E / flutter(5490):尝试调用:split(“ ”)...,之后是其他错误。 我将尝试查看我的后端代码...根据我的猜测,我的发布请求正确吗?
大约 2 年之前 回复
douye4254
douye4254 与哪个错误相同? “方法'split'被调用为null。”? 这样一来,您就不会再收到标头。 也许您应该检查responseCode
大约 2 年之前 回复
dongxingchang9345
dongxingchang9345 我似乎仍然遇到相同的错误,这可能是后端出现的问题吗? 我想我正在正确检索标题。
大约 2 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Flutter使用报错error: Target of URI doesn't exist: 'package:flutter/material.dart',且‘package get’不能运行.

Windows系统初次安装Flutter和AS,显示没有依赖,package get不能运行。采用了目前网上能找到的方法都不管用或是无从下手。 运行package get 后显示![图片说明](https://img-ask.csdn.net/upload/202002/07/1581088458_426060.png)

flutter绘制页面时,闪退[ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(39)] java.lang.IllegalArgumentException: array == null

自动化测试过程中,发现进入APP拍摄页会出现引导弹窗,就会闪退,抓取log如下,希望有大神解决,找研发了,他们也没有办法 ``` 06-12 15:55:42.870 E/flutter ( 2064): [ERROR:flutter/flow/layers/transform_layer.cc(22)] TransformLayer is constructed with an invalid matrix. 06-12 15:55:42.870 I/chatty ( 2064): uid=10266(com.ghj.tongue) 3.ui identical 1 line 06-12 15:55:42.870 E/flutter ( 2064): [ERROR:flutter/flow/layers/transform_layer.cc(22)] TransformLayer is constructed with an invalid matrix. 06-12 15:55:42.909 I/flutter ( 2064): kang-----CameraHintDialog:宽度_60.0 高度_60.0 06-12 15:55:42.936 E/flutter ( 2064): [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(39)] java.lang.IllegalArgumentException: array == null 06-12 15:55:42.936 E/flutter ( 2064): at android.opengl.Matrix.multiplyMM(Native Method) 06-12 15:55:42.936 E/flutter ( 2064): at io.flutter.view.AccessibilityBridge$SemanticsNode.updateRecursively(AccessibilityBridge.java:2146) 06-12 15:55:42.936 E/flutter ( 2064): at io.flutter.view.AccessibilityBridge$SemanticsNode.updateRecursively(AccessibilityBridge.java:2194) 06-12 15:55:42.936 E/flutter ( 2064): at io.flutter.view.AccessibilityBridge$SemanticsNode.access$4300(AccessibilityBridge.java:1779) 06-12 15:55:42.936 E/flutter ( 2064): at io.flutter.view.AccessibilityBridge.updateSemantics(AccessibilityBridge.java:1289) 06-12 15:55:42.936 E/flutter ( 2064): at io.flutter.view.AccessibilityBridge$1.updateSemantics(AccessibilityBridge.java:266) 06-12 15:55:42.936 E/flutter ( 2064): at io.flutter.embedding.engine.FlutterJNI.updateSemantics(FlutterJNI.java:428) 06-12 15:55:42.936 E/flutter ( 2064): at android.os.MessageQueue.nativePollOnce(Native Method) 06-12 15:55:42.936 E/flutter ( 2064): at android.os.MessageQueue.next(MessageQueue.java:330) 06-12 15:55:42.936 E/flutter ( 2064): at android.os.Looper.loop(Looper.java:169) 06-12 15:55:42.936 E/flutter ( 2064): at android.app.ActivityThread.main(ActivityThread.java:7053) 06-12 15:55:42.936 E/flutter ( 2064): at java.lang.reflect.Method.invoke(Native Method) 06-12 15:55:42.936 E/flutter ( 2064): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:536) 06-12 15:55:42.936 E/flutter ( 2064): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:876) 06-12 15:55:42.936 E/flutter ( 2064): 06-12 15:55:42.936 F/flutter ( 2064): [FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(95)] Check failed: CheckException(env). ```

flutter中扫描WiFi的问题,为什么用wifi_configuration.dart的package去扫描会出现get到的值为空?请问是什么情况?

flutter: import 'package:wifi_configuration/wifi_configuration.dart'; 调用这个package去扫描WiFi,扫描到的结果为空, void getConnectionState() async { var listAvailableWifi = await WifiConfiguration.getWifiList(); var listWifi = listAvailableWifi.toString(); print("get wifi list : " + listAvailableWifi.toString()); print(listWifi.contains("Nebula")); print(listAvailableWifi.length); } 结果如下 I/flutter (20369): get wifi list : [] I/flutter (20369): false I/flutter (20369): 0 I/flutter (20369): 请问是什么情况

Flutter开发应用时,怎么连接本地服务器?

我使用Apche来构建本地服务器,但是不知道如何使用Flutter或者dart库来连接本地的服务器。

flutter中使用socket导致UI卡顿?

1. 在flutter使用tcp请求服务器的时候,在listen中对tcp流进行解析,解析过程包含拆包和拼包,正常情况下都没有问题,但是当服务器推送的流过快的时候,导致UI卡死,有人有好的建议吗? 2. 代码如下: ``` Future<Socket> _connect(String ip, int port) async{ if(!isConnect()) { try { _socket = await Socket.connect(ip, port, timeout: Duration(seconds: 20),); _socket.listen(_onData, onError: _onError, onDone: _onDone); }catch(e){ if(e is SocketException){ _onTimeout(); }else{ print("error : $e"); } } } return _socket; } ``` _onData中是一些拼包拆包的业务逻辑,当tcp流包含多个业务报文的时候,onData中会循环拆分包直至拆分完成,每个包都会回调到具体的业务逻辑。。现在问题是,如果服务器发送的是base64图片的话,系统就会卡死,请问 下这个问题怎么解决?

Flutter用Golang RFC3339中的DateTime解析json:FormatException:无效的日期格式

<div class="post-text" itemprop="text"> <p>When trying to read json files generated with golangs json package in Dart / Flutter I noticed that parsing dates produce an error:</p> <pre><code>FormatException: Invalid date format </code></pre> <p>An example is the following json generated on the Go server:</p> <pre><code>{ ... "dateCreated": "2018-09-29T19:51:57.4139787-07:00", ... } </code></pre> <p>I am using the code generation approach for json (de-)serialization to avoid writing all the boiler plate code. The json_serializable package is a standard package available for this purpose. So my code looks like the following:</p> <pre><code>@JsonSerializable() class MyObj { DateTime dateCreated; MyObj( this.dateCreated); factory MyObj.fromJson(Map&lt;String, dynamic&gt; json) =&gt; _$MyObjFromJson(json); Map&lt;String, dynamic&gt; toJson() =&gt; _$MyObjToJson(this); } </code></pre> </div>

android studio下运行flutter提示连接不上android设备

在android studio里开发flutter项目,flutter和dart插件都安装了,各种配置环境都配好了,但是运行项目还是提示没有可连接的设备,运行android studio项目就可以运行,但是运行flutter项目就连不上设备 ![图片说明](https://img-ask.csdn.net/upload/201912/18/1576647083_176276.jpg) 输入flutter doctor显示如图 ![图片说明](https://img-ask.csdn.net/upload/201912/20/1576809036_857979.jpg)

flutter dart文件有定义类的静态变量和没有定义类的变量有何区别

比如 class Test{ static String name; static String password; static method(){ ..... } } 和不定义class直接变量f方法写在dart文件里有什么区别 如下: String name; String password; method(){ ..... } 这两者变量方法都是公共的,请问有什么区别

flutter Android APP开发,如何用wifi_configuration 和 wifi 这两个插件去scan wifi并且自动连接到扫描到的wifi ?

flutter 扫描WiFi并连接的功能 连接到指定的WiFi的SSID import 'package:wifi_configuration/wifi_configuration.dart'; import 'package:wifi/wifi.dart';这两个package怎么使用?

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'?

更新了一下flutter,就突然一片红 FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. > Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347. Required by: project :app > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347. > Could not get resource 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/flutter_embedding_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > Could not GET 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/flutter_embedding_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > https > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347. > Could not get resource 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/flutter_embedding_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > Could not GET 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/flutter_embedding_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > https > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347. > Could not get resource 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/flutter_embedding_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > Could not GET 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/flutter_embedding_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > https > Could not resolve io.flutter:x86_debug:1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347. Required by: project :app > Could not resolve io.flutter:x86_debug:1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347. > Could not get resource 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/x86_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/x86_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > Could not GET 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/x86_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/x86_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > https > Could not resolve io.flutter:x86_debug:1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347. > Could not get resource 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/x86_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/x86_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > Could not GET 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/x86_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/x86_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > https > Could not resolve io.flutter:x86_debug:1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347. > Could not get resource 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/x86_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/x86_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > Could not GET 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/x86_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/x86_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > https > Could not resolve io.flutter:x86_64_debug:1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347. Required by: project :app > Could not resolve io.flutter:x86_64_debug:1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347. > Could not get resource 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/x86_64_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/x86_64_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > Could not GET 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/x86_64_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/x86_64_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > https > Could not resolve io.flutter:x86_64_debug:1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347. > Could not get resource 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/x86_64_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/x86_64_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > Could not GET 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/x86_64_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/x86_64_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > https > Could not resolve io.flutter:x86_64_debug:1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347. > Could not get resource 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/x86_64_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/x86_64_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > Could not GET 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/x86_64_debug/1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347/x86_64_debug-1.0.0-9b905d3f03f27a332ad861934da0f5111c24d347.pom'. > https * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 26s

flutter Navigator路由跳转和返回,组件会重复build

https://github.com/flutter/flutter/issues/11655 为什么页面1, push到页面2,页面1会触发build?,然后回来的时候又build了一次 这样的话,我一个listView滚了很多了,结果点到详情页又得重新滚,这到底是bug还是故意为之的

flutter项目无法引入qr_flutter包,packages get时候报错,望各位大佬指点迷津!

Package qr_flutter has no versions that match >=1.1.3 <2.0.0 derived from: - zhihu depends on version ^1.1.3 ---- Log transcript ---- FINE: Pub 2.0.0-dev.16.0 IO : Spawning "cmd /c ver" in F:\ECAVC\zhihu-flutter-master\zhihu-flutter-master\. IO : Finished ver. Exit code 0. | stdout: | | | | Microsoft Windows [Version 6.1.7601] | Nothing output on stderr. MSG : Resolving dependencies... SLVR: Solving dependencies: | - cupertino_icons ^0.1.0 from hosted (cupertino_icons) (locked to 0.1.1) | - flutter any from sdk (flutter) (locked to 0.0.0) IO : Get versions from https://pub.flutter-io.cn/api/packages/qr_flutter. IO : HTTP GET https://pub.flutter-io.cn/api/packages/qr_flutter | Accept: application/vnd.pub.v2+json | user-agent: Dart pub 2.0.0-dev.16.0 IO : HTTP response 200 OK for GET https://pub.flutter-io.cn/api/packages/qr_flutter | took 0:00:01.060953 | connection: keep-alive | transfer-encoding: chunked | date: Fri, 28 Sep 2018 13:45:12 GMT | content-encoding: gzip | vary: Accept-Encoding | x-m-reqid: qWoAAP8YGXNIlFgV | content-type: application/json | x-xss-protection: 1; mode=block | x-source: C/200 | x-m-log: QNM:xs462;SRCPROXY:xs481;SRC:254;SRCPROXY:255;QNM3:553 | server: marco/2.6 | x-request-id: e6d1190402c12d9729c11b58b7ab7625 | via: S.mix-gd-can-007, T.10.D, V.mix-gd-can-007, T.3.D, M.cun-hn-csx-005 | x-frame-options: SAMEORIGIN | x-content-type-options: nosniff | x-qnm-cache: Validate,MissValidate SLVR: * start at root SLVR: | cupertino_icons 0.1.1 from hosted is locked SLVR: | * select cupertino_icons 0.1.1 from hosted SLVR: | | english_words 3.1.3 from hosted is locked SLVR: | | * select english_words 3.1.3 from hosted SLVR: | | | flutter 0.0.0 from sdk is locked SLVR: | | | * select flutter 0.0.0 from sdk SLVR: | | | | collection 1.14.5 from hosted is locked SLVR: | | | | * select collection 1.14.5 from hosted SLVR: | | | | | flutter_test 0.0.0 from sdk is locked SLVR: | | | | | * select flutter_test 0.0.0 from sdk SLVR: | | | | | | * select pub itself SLVR: | | | | | | | args 1.2.0 from hosted is locked SLVR: | | | | | | | * select args 1.2.0 from hosted SLVR: | | | | | | | | async 2.0.3 from hosted is locked SLVR: | | | | | | | | * select async 2.0.3 from hosted SLVR: | | | | | | | | | barback 0.15.2+14 from hosted is locked SLVR: | | | | | | | | | * select barback 0.15.2+14 from hosted SLVR: | | | | | | | | | | boolean_selector 1.0.2 from hosted is locked SLVR: | | | | | | | | | | * select boolean_selector 1.0.2 from hosted SLVR: | | | | | | | | | | | charcode 1.1.1 from hosted is locked SLVR: | | | | | | | | | | | * select charcode 1.1.1 from hosted SLVR: | | | | | | | | | | | | cli_util 0.1.2+1 from hosted is locked SLVR: | | | | | | | | | | | | * select cli_util 0.1.2+1 from hosted SLVR: | | | | | | | | | | | | | convert 2.0.1 from hosted is locked SLVR: | | | | | | | | | | | | | * select convert 2.0.1 from hosted SLVR: | | | | | | | | | | | | | | crypto 2.0.2+1 from hosted is locked SLVR: | | | | | | | | | | | | | | * select crypto 2.0.2+1 from hosted SLVR: | | | | | | | | | | | | | | | csslib 0.14.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | * select csslib 0.14.1 from hosted SLVR: | | | | | | | | | | | | | | | | glob 1.1.5 from hosted is locked SLVR: | | | | | | | | | | | | | | | | * select glob 1.1.5 from hosted SLVR: | | | | | | | | | | | | | | | | | html 0.13.2+2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | * select html 0.13.2+2 from hosted SLVR: | | | | | | | | | | | | | | | | | | http 0.11.3+16 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | * select http 0.11.3+16 from hosted SLVR: | | | | | | | | | | | | | | | | | | | http_multi_server 2.0.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | * select http_multi_server 2.0.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | http_parser 3.1.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | * select http_parser 3.1.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | io 0.3.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | * select io 0.3.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | isolate 1.1.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | * select isolate 1.1.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | js 0.6.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | * select js 0.6.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | logging 0.11.3+1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | * select logging 0.11.3+1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | matcher 0.12.1+4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | * select matcher 0.12.1+4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | meta 1.1.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | * select meta 1.1.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | mime 0.9.5 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | * select mime 0.9.5 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | mockito 2.2.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select mockito 2.2.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | multi_server_socket 1.0.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select multi_server_socket 1.0.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | node_preamble 1.4.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select node_preamble 1.4.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | package_config 1.0.3 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select package_config 1.0.3 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | package_resolver 1.0.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select package_resolver 1.0.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | path 1.5.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select path 1.5.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | plugin 0.2.0+2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select plugin 0.2.0+2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pool 1.3.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select pool 1.3.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pub_semver 1.3.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select pub_semver 1.3.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | quiver 0.28.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select quiver 0.28.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shelf 0.7.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select shelf 0.7.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shelf_packages_handler 1.0.3 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select shelf_packages_handler 1.0.3 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shelf_static 0.2.7 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select shelf_static 0.2.7 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shelf_web_socket 0.2.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select shelf_web_socket 0.2.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sky_engine 0.0.99 from path is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select sky_engine 0.0.99 from path SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source_map_stack_trace 1.1.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select source_map_stack_trace 1.1.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source_maps 0.10.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select source_maps 0.10.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source_span 1.4.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select source_span 1.4.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stack_trace 1.9.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select stack_trace 1.9.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stream_channel 1.6.3 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select stream_channel 1.6.3 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | string_scanner 1.0.2 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select string_scanner 1.0.2 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | term_glyph 1.0.0 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select term_glyph 1.0.0 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test 0.12.30+1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select test 0.12.30+1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | analyzer 0.31.1 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select analyzer 0.31.1 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | front_end 0.1.0-alpha.9 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select front_end 0.1.0-alpha.9 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | kernel 0.3.0-alpha.9 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select kernel 0.3.0-alpha.9 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | typed_data 1.1.4 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select typed_data 1.1.4 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | utf 0.9.0+3 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select utf 0.9.0+3 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vector_math 2.0.5 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select vector_math 2.0.5 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | watcher 0.9.7+6 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select watcher 0.9.7+6 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | web_socket_channel 1.0.6 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select web_socket_channel 1.0.6 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | yaml 2.1.13 from hosted is locked SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * select yaml 2.1.13 from hosted SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version 1.1.2 of qr_flutter doesn't match >=1.1.3 <2.0.0: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zhihu 0.0.0 (root) -> qr_flutter ^1.1.3 from hosted (qr_flutter) SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version 1.1.1 of qr_flutter doesn't match >=1.1.3 <2.0.0: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zhihu 0.0.0 (root) -> qr_flutter ^1.1.3 from hosted (qr_flutter) SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version 1.1.0 of qr_flutter doesn't match >=1.1.3 <2.0.0: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zhihu 0.0.0 (root) -> qr_flutter ^1.1.3 from hosted (qr_flutter) SLVR: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version 1.0.0 of qr_flutter doesn't match >=1.1.3 <2.0.0: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zhihu 0.0.0 (root) -> qr_flutter ^1.1.3 from hosted (qr_flutter) SLVR: BacktrackingSolver took 0:00:01.494368 seconds. | - Tried 1 solutions | - Requested 1 version lists | - Looked up 1 cached version lists | FINE: Resolving dependencies finished (1.5s). ERR : Package qr_flutter has no versions that match >=1.1.3 <2.0.0 derived from: | - zhihu depends on version ^1.1.3 FINE: Exception type: NoVersionException FINE: package:pub/src/entrypoint.dart 216 Entrypoint.acquireDependencies | package:pub/src/command/get.dart 38 GetCommand.run | package:args/command_runner.dart 194 CommandRunner.runCommand | package:pub/src/command_runner.dart 167 PubCommandRunner.runCommand.<fn> | dart:async new Future.sync | package:pub/src/utils.dart 103 captureErrors.<fn> | package:stack_trace Chain.capture | package:pub/src/utils.dart 118 captureErrors | package:pub/src/command_runner.dart 167 PubCommandRunner.runCommand | package:pub/src/command_runner.dart 116 PubCommandRunner.run | E:\b\build\slave\dart-sdk-windows-dev\build\sdk\third_party\pkg\pub\bin\pub.dart 8 main | ===== asynchronous gap =========================== | dart:async _Completer.completeError | package:pub/src/entrypoint.dart Entrypoint.acquireDependencies | ===== asynchronous gap =========================== | dart:async _asyncThenWrapperHelper | package:pub/src/entrypoint.dart 194 Entrypoint.acquireDependencies | package:pub/src/command/get.dart 38 GetCommand.run | package:args/command_runner.dart 194 CommandRunner.runCommand | ===== asynchronous gap =========================== | dart:async new Future.microtask | package:args/command_runner.dart 142 CommandRunner.runCommand | package:pub/src/command_runner.dart 167 PubCommandRunner.runCommand.<fn> | dart:async new Future.sync | package:pub/src/utils.dart 103 captureErrors.<fn> | package:stack_trace Chain.capture | package:pub/src/utils.dart 118 captureErrors | package:pub/src/command_runner.dart 167 PubCommandRunner.runCommand ---- End log transcript ---- pub get failed (1) ``` ```

Flutter dio库,get请求成功后返回的json数据不完整

![图片说明](https://img-ask.csdn.net/upload/202004/17/1587090742_903830.png) 后台代码: ![图片说明](https://img-ask.csdn.net/upload/202004/17/1587090978_542527.png) 后台可以打印出完成的json数据,flutter只打印了一部分,难道get请求对返回的数据大小有限制吗?

Android Studio Flutter 项目配置好了之后启动不了

项目一直启动不了,Flutter Dart的SDK配置没错 USB链接也没问题,网上说可能是因为gradle包没有导入,初始化很慢,导致超时,gradle的包我也下载了还是没法启动,就一直卡在这边,求大神指教 ![图片说明](https://img-ask.csdn.net/upload/201809/30/1538300055_285627.png)

flutter的demo跑不起来

![图片说明](https://img-ask.csdn.net/upload/201902/01/1549015563_655607.png) flutter_android里的android文件夹是可以通过android studio编译通过的,但是直接运行flutter_android就报以下错误 ![图片说明](https://img-ask.csdn.net/upload/201902/01/1549015797_773062.png) 尝试过在android文件夹所对应的项目中增加 ``` // maven { url 'https://maven.aliyun.com/repository/google' } // maven { url 'https://maven.aliyun.com/repository/jcenter' } // maven { url 'http://maven.aliyun.com/nexus/content/groups/public' } ``` 在flutter里的flutter.gradler中也增加上面的代码片段。但是也是报上文的错误。 ![图片说明](https://img-ask.csdn.net/upload/201902/01/1549016080_832953.png)

无法将视频从flutter上传到服务器php?

<div class="post-text" itemprop="text"> <p>I tried to upload a video. Got the message "Video uploaded" and NO video file received in 'uploads' folder. When I tried to upload an image file, it works (uploaded image file has arrived in the 'uploads' folder). My code doesn't work with the video file. How to make it receive a video file?</p> <p>This is a dart file.</p> <pre><code>import 'dart:async'; import 'dart:convert'; import 'dart:io'; import 'package:flutter/material.dart'; import 'package:http/http.dart'; import 'package:image_picker/image_picker.dart'; void main() =&gt; runApp(new MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( title: 'Flutter Upload MySQL', home: new MyHomePage(), ); } } class MyHomePage extends StatefulWidget { @override _MyHomePageState createState() =&gt; _MyHomePageState(); } class _MyHomePageState extends State&lt;MyHomePage&gt; { File _video; Future getVideoGallery() async{ var imageFile = await ImagePicker.pickVideo(source: ImageSource.gallery); setState(() { _video = imageFile; }); } Future getVideoCamera() async{ var imageFile = await ImagePicker.pickVideo(source: ImageSource.camera); setState(() { _video = imageFile; }); } Future uploadVideo(File videoFile) async{ var uri = Uri.parse("http://192.168.1.1/ABC/uploadVideo.php"); var request = new MultipartRequest("POST", uri); var multipartFile = await MultipartFile.fromPath("video", videoFile.path); request.files.add(multipartFile); StreamedResponse response = await request.send(); response.stream.transform(utf8.decoder).listen((value) { print(value); }); if(response.statusCode==200){ print("Video uploaded"); }else{ print("Video upload failed"); } } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text("Upload Image"),), body: SingleChildScrollView( child: Column( children: &lt;Widget&gt;[ _video==null ? new Text("No video selected!") : new Text("video is selected"), Row( children: &lt;Widget&gt;[ RaisedButton( child: Icon(Icons.video_library), onPressed: getVideoGallery, ), RaisedButton( child: Icon(Icons.videocam), onPressed: getVideoCamera, ), RaisedButton( child: Text("UPLOAD video"), onPressed:(){ uploadVideo(_video); }, ), ], ) ], ), ), ); } } </code></pre> <p>This is php file.</p> <pre><code>&lt;?php include 'conn.php'; $video=$_FILES['video']['name']; $videoPath="uploads/".$video; move_uploaded_file($_FILES['video']['tmp_name'],$videoPath); ?&gt; </code></pre> </div>

flutter 软键盘切换问题

flutter 在使用百度键盘的时候,TextField 设置了 keyboardType 但是没用, 在多个TextField切换的时候,软键盘的类型并不是及时的,有时候需要先关闭软键盘,再点击获取焦点才能显示正确的键盘类型。 测试了百度输入法,搜狗输入法,讯飞输入法。 百度输入法不能及时变更键盘类型,搜狗和讯飞可以。 求flutter的大佬告诉我这是为啥。咋弄~ ![图片说明](https://img-ask.csdn.net/upload/202004/10/1586509209_316095.gif)

vs code编译flutter,Initializing gradle后报错

小白一枚,还请大神指教 因为之前一直卡在Initializing gradle步骤,然后查了CSDN修改了一次flutter.gradle文件之后,就一直报错,改回来也没用。没改之间就一直卡在Initializing gradle。 报错的代码: Exception in thread "main" java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:219) at java.util.zip.ZipFile.<init>(ZipFile.java:149) at java.util.zip.ZipFile.<init>(ZipFile.java:163) at org.gradle.wrapper.Install.unzip(Install.java:214) at org.gradle.wrapper.Install.access$600(Install.java:27) at org.gradle.wrapper.Install$1.call(Install.java:74) at org.gradle.wrapper.Install$1.call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61) Command: /Users/jackwang/Documents/Flutter/first_flutter_app/android/gradlew -v Exited (sigterm) 还请大佬指教!

flutter 打包后动画部分的组件屏幕适配问题

在写flutter的代码的时候为了让组件大小适配屏幕使用了flutter_screenUtil插件。在调试的时候是正常的,可以适配屏幕。但是打包之后就会失去效果。有没有遇到类似情况的朋友,希望可以给点建议,谢谢。下面是我的代码。 ``` import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter/animation.dart'; import 'package:omni/common/menuPage.dart'; import 'dart:async'; class Login extends StatefulWidget { _LoginState createState() => new _LoginState(); } class _LoginState extends State<Login> with TickerProviderStateMixin { Animation<RelativeRect> animationLogo; Animation<RelativeRect> animationAddress; AnimationController controllerAddress; AnimationController controllerLogo; AnimationController controllerName; double tabHeight = ScreenUtil().setHeight(300); double formHeight = ScreenUtil().setHeight(0); double submitHeight = ScreenUtil().setHeight(0); double loadingHeight = ScreenUtil().setHeight(0); double walletHeight = ScreenUtil().setHeight(0); double addressHeight = ScreenUtil().setHeight(0); double marketHeight = ScreenUtil().setHeight(0); double addressBottom = ScreenUtil().setHeight(0); bool isShowBalance = false; bool isShowAddressDetail = false; @override void initState() { // TODO: implement initState super.initState(); controllerLogo = new AnimationController( duration: const Duration(milliseconds: 1000), vsync: this); controllerName = new AnimationController( duration: const Duration(milliseconds: 1000), vsync: this); controllerAddress = new AnimationController( duration: const Duration(milliseconds: 1000), vsync: this); animationLogo = RelativeRectTween( begin: RelativeRect.fromLTRB( ScreenUtil().setWidth(250), ScreenUtil().setHeight(548), ScreenUtil().setWidth(250), ScreenUtil().setHeight(546)), end: RelativeRect.fromLTRB( ScreenUtil().setWidth(40), ScreenUtil().setHeight(50), ScreenUtil().setWidth(650), ScreenUtil().setHeight(1234)), ).animate(controllerLogo) ..addListener(() { if (animationLogo.isCompleted) { controllerName.forward(); } }); animationAddress = RelativeRectTween( begin: RelativeRect.fromLTRB( ScreenUtil().setWidth(0), ScreenUtil().setHeight(100), ScreenUtil().setWidth(0), ScreenUtil().setHeight(0)), end: RelativeRect.fromLTRB( ScreenUtil().setWidth(0), ScreenUtil().setHeight(100), ScreenUtil().setWidth(0), ScreenUtil().setHeight(600)), ).animate(controllerAddress) ..addListener(() { }); } @override Widget build(BuildContext context) { // TODO: implement build return new Scaffold( endDrawer: new Menu(), body: new Container( child: Stack( children: <Widget>[ PositionedTransition( rect: animationLogo, child: GestureDetector( onTap: () {}, child: Container( width: 100.0, height: 100.0, color: Colors.red, ), ), ), new Positioned( bottom: ScreenUtil().setHeight(1224), left: ScreenUtil().setWidth(120), child: SizeTransition( axis: Axis.vertical, sizeFactor: new Tween(begin: 0.0, end: 1.0).animate(controllerName), child: Container( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ new Container( child: new Text('OMNI'), ), new Container( child: new Text('WALLET'), ) ], ), ), ), ), new Positioned( bottom: 0, child: new AnimatedContainer( duration: Duration(milliseconds: 1000), width: ScreenUtil().setWidth(750), height: tabHeight, padding: EdgeInsets.only( top: ScreenUtil().setHeight(40), bottom: ScreenUtil().setHeight(60), left: ScreenUtil().setWidth(60), right: ScreenUtil().setWidth(60), ), child: new Container( child: new Row( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: <Widget>[ new GestureDetector( onTap: () { tabHeight = ScreenUtil().setHeight(1100); formHeight = ScreenUtil().setHeight(950); submitHeight = ScreenUtil().setHeight(300); controllerLogo.forward(); setState(() {}); }, child: new Container( width: ScreenUtil().setWidth(314), padding: EdgeInsets.fromLTRB(0, 5, 0, 5), decoration: BoxDecoration( border: Border( right: BorderSide( width: 1, color: Color.fromRGBO(136, 152, 167, 1)))), child: new Text( 'LOGIN', textAlign: TextAlign.center, style: TextStyle( fontSize: ScreenUtil().setSp(40), letterSpacing: ScreenUtil().setSp(10), color: Color.fromRGBO(82, 126, 185, 1)), ), ), ), new GestureDetector( child: new Container( width: ScreenUtil().setWidth(315), padding: EdgeInsets.fromLTRB(0, 5, 0, 5), child: new Text( 'CREATE', textAlign: TextAlign.center, style: TextStyle( fontSize: ScreenUtil().setSp(40), letterSpacing: ScreenUtil().setSp(10), color: Color.fromRGBO(82, 126, 185, 1)), ), ), ), ], ), ), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80))), boxShadow: [ BoxShadow( color: Color.fromRGBO(28, 58, 176, .1), offset: Offset(-0.0, -10.0), blurRadius: 10.0, spreadRadius: 0.0) ]), ), ), new Positioned( bottom: ScreenUtil().setHeight(40), left: ScreenUtil().setWidth(175), child: new Offstage( offstage: isShowBalance, child: FlatButton( onPressed: () { print('BALANCE CHECK'); }, padding: EdgeInsets.all(0), child: new Container( height: ScreenUtil().setHeight(60), width: ScreenUtil().setWidth(400), decoration: BoxDecoration( // color: Colors.blue, gradient: const LinearGradient(colors: [ Color.fromRGBO(164, 185, 216, 1), Color.fromRGBO(80, 119, 181, 1) ]), borderRadius: BorderRadius.circular(40)), child: new Text( 'BALANCE CHECK', textAlign: TextAlign.center, style: TextStyle( color: Colors.white, fontSize: ScreenUtil().setSp(30), height: 1.4), ), ), ), ), ), new Positioned( bottom: 0, child: new AnimatedContainer( duration: Duration(milliseconds: 1000), width: ScreenUtil().setWidth(750), height: formHeight, decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80))), boxShadow: [ BoxShadow( color: Color.fromRGBO(28, 58, 176, .1), offset: Offset(-0.0, -10.0), blurRadius: 10.0, spreadRadius: 0.0) ]), ), ), new Positioned( bottom: 0, child: new AnimatedContainer( duration: Duration(milliseconds: 1000), width: ScreenUtil().setWidth(750), height: submitHeight, child: new GestureDetector( onTap: () { tabHeight = ScreenUtil().setHeight(0); formHeight = ScreenUtil().setHeight(0); submitHeight = ScreenUtil().setHeight(0); loadingHeight = ScreenUtil().setHeight(1100); Timer timer = new Timer(new Duration(seconds: 2), () { loadingHeight = ScreenUtil().setHeight(0); walletHeight = ScreenUtil().setHeight(1100); addressHeight = ScreenUtil().setHeight(800); marketHeight = ScreenUtil().setHeight(400); setState(() {}); }); isShowBalance = true; setState(() {}); }, child: new Container( child: Center( child: new Text('SUBMIT'), )), ), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80))), boxShadow: [ BoxShadow( color: Color.fromRGBO(28, 58, 176, .1), offset: Offset(-0.0, -10.0), blurRadius: 10.0, spreadRadius: 0.0) ]), ), ), new Positioned( bottom: 0, child: new AnimatedContainer( duration: Duration(milliseconds: 1000), width: ScreenUtil().setWidth(750), height: loadingHeight, padding: EdgeInsets.only( top: ScreenUtil().setHeight(40), bottom: ScreenUtil().setHeight(60), left: ScreenUtil().setWidth(60), right: ScreenUtil().setWidth(60), ), child: new Container(child: new Text('Loading...')), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80))), boxShadow: [ BoxShadow( color: Color.fromRGBO(28, 58, 176, .1), offset: Offset(-0.0, -10.0), blurRadius: 10.0, spreadRadius: 0.0) ]), ), ), new Positioned( bottom: 0, child: new Container( child: new Stack( children: <Widget>[ new Positioned( child: AnimatedContainer( duration: Duration(milliseconds: 1000), width: ScreenUtil().setWidth(750), height: walletHeight, padding: EdgeInsets.only( top: ScreenUtil().setHeight(40), bottom: ScreenUtil().setHeight(60), left: ScreenUtil().setWidth(60), right: ScreenUtil().setWidth(60), ), child: new GestureDetector( child: new Container( child: new Text('WALLET'), )), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80))), boxShadow: [ BoxShadow( color: Color.fromRGBO(28, 58, 176, .1), offset: Offset(-0.0, -10.0), blurRadius: 10.0, spreadRadius: 0.0) ]), ), ), new PositionedTransition( rect: animationAddress, child: AnimatedContainer( duration: Duration(milliseconds: 1000), width: ScreenUtil().setWidth(750), height: addressHeight, padding: EdgeInsets.only( top: ScreenUtil().setHeight(40), bottom: ScreenUtil().setHeight(60), left: ScreenUtil().setWidth(60), right: ScreenUtil().setWidth(60), ), child: new Container( child: Column( children: <Widget>[ new GestureDetector( onTap: () { print(321); marketHeight = 0; controllerAddress.reverse(); isShowAddressDetail = false; setState(() {}); }, child: new Container( child: new Text('ADDRESS'), )), new Container( child: new GestureDetector( onTap: (){ print(123); // addressHeight = ScreenUtil().setHeight(350); isShowAddressDetail = true; controllerAddress.forward(); setState(() { }); }, child: new Container( child: Text('Show Detail'), ), ), ) ], ), ), decoration: BoxDecoration( color: Colors.red, borderRadius:isShowAddressDetail? BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80)), bottomLeft: Radius.circular(ScreenUtil().setSp(80)), bottomRight: Radius.circular(ScreenUtil().setSp(80)) ): BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80))), boxShadow: [ BoxShadow( color: Color.fromRGBO(28, 58, 176, .3), offset: Offset(-0.0, -0.0), blurRadius: 10.0, spreadRadius: 10.0) ]), ), ), new Positioned( bottom: 0, child: AnimatedContainer( duration: Duration(milliseconds: 1000), width: ScreenUtil().setWidth(750), height: marketHeight, padding: EdgeInsets.only( top: ScreenUtil().setHeight(40), bottom: ScreenUtil().setHeight(60), left: ScreenUtil().setWidth(60), right: ScreenUtil().setWidth(60), ), child: new GestureDetector( child: new Container( child: new Text('MARKET'), )), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(ScreenUtil().setSp(80)), topRight: Radius.circular(ScreenUtil().setSp(80))), boxShadow: [ BoxShadow( color: Color.fromRGBO(28, 58, 176, .1), offset: Offset(-0.0, -10.0), blurRadius: 10.0, spreadRadius: 0.0) ]), ), ) ], ), )) ], ), ), ); } } ``` 下面是在调试时候的截图: ![图片说明](https://img-ask.csdn.net/upload/201908/01/1564626484_908639.png) ![图片说明](https://img-ask.csdn.net/upload/201908/01/1564626499_930103.png) 下面是打包安装到手机上的图片: ![图片说明](https://img-ask.csdn.net/upload/201908/01/1564626535_640015.jpg) 如果有解决方案,希望可以帮助一下

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

软件测试入门、SQL、性能测试、测试管理工具

软件测试2小时入门,让您快速了解软件测试基本知识,有系统的了解; SQL一小时,让您快速理解和掌握SQL基本语法 jmeter性能测试 ,让您快速了解主流来源性能测试工具jmeter 测试管理工具-禅道,让您快速学会禅道的使用,学会测试项目、用例、缺陷的管理、

基于西门子S7—1200的单部六层电梯设计程序,1部6层电梯

基于西门子S7—1200的单部六层电梯设计程序,1部6层电梯。 本系统控制六层电梯, 采用集选控制方式。 为了完成设定的控制任务, 主要根据电梯输入/输出点数确定PLC 的机型。 根据电梯控制的要求,

捷联惯导仿真matlab

捷联惯导的仿真(包括轨迹仿真,惯性器件模拟输出,捷联解算),标了详细的注释捷联惯导的仿真(包括轨迹仿真,惯性器件模拟输出,捷联解算),标了详细的注释

深度学习原理+项目实战+算法详解+主流框架(套餐)

深度学习系列课程从深度学习基础知识点开始讲解一步步进入神经网络的世界再到卷积和递归神经网络,详解各大经典网络架构。实战部分选择当下最火爆深度学习框架PyTorch与Tensorflow/Keras,全程实战演示框架核心使用与建模方法。项目实战部分选择计算机视觉与自然语言处理领域经典项目,从零开始详解算法原理,debug模式逐行代码解读。适合准备就业和转行的同学们加入学习! 建议按照下列课程顺序来进行学习 (1)掌握深度学习必备经典网络架构 (2)深度框架实战方法 (3)计算机视觉与自然语言处理项目实战。(按照课程排列顺序即可)

图书管理系统(Java + Mysql)我的第一个完全自己做的实训项目

图书管理系统 Java + MySQL 完整实训代码,MVC三层架构组织,包含所有用到的图片资源以及数据库文件,大三上学期实训,注释很详细,按照阿里巴巴Java编程规范编写

玩转Linux:常用命令实例指南

人工智能、物联网、大数据时代,Linux正有着一统天下的趋势,几乎每个程序员岗位,都要求掌握Linux。本课程零基础也能轻松入门。 本课程以简洁易懂的语言手把手教你系统掌握日常所需的Linux知识,每个知识点都会配合案例实战让你融汇贯通。课程通俗易懂,简洁流畅,适合0基础以及对Linux掌握不熟练的人学习; 【限时福利】 1)购课后按提示添加小助手,进答疑群,还可获得价值300元的编程大礼包! 2)本月购买此套餐加入老师答疑交流群,可参加老师的免费分享活动,学习最新技术项目经验。 --------------------------------------------------------------- 29元=掌握Linux必修知识+社群答疑+讲师社群分享会+700元编程礼包。 &nbsp;

网络工程师小白入门--【思科CCNA、华为HCNA等网络工程师认证】

本课程适合CCNA或HCNA网络小白同志,高手请绕道,可以直接学习进价课程。通过本预科课程的学习,为学习网络工程师、思科CCNA、华为HCNA这些认证打下坚实的基础! 重要!思科认证2020年2月24日起,已启用新版认证和考试,包括题库都会更新,由于疫情原因,请关注官网和本地考点信息。题库网络上很容易下载到。

C++语言基础视频教程

C++语言基础视频培训课程:本课与主讲者在大学开出的程序设计课程直接对接,准确把握知识点,注重教学视频与实践体系的结合,帮助初学者有效学习。本教程详细介绍C++语言中的封装、数据隐藏、继承、多态的实现等入门知识;主要包括类的声明、对象定义、构造函数和析构函数、运算符重载、继承和派生、多态性实现等。 课程需要有C语言程序设计的基础(可以利用本人开出的《C语言与程序设计》系列课学习)。学习者能够通过实践的方式,学会利用C++语言解决问题,具备进一步学习利用C++开发应用程序的基础。

微信小程序 实例汇总 完整项目源代码

微信小程序 实例汇总 完整项目源代码

Python数据挖掘简易入门

&nbsp; &nbsp; &nbsp; &nbsp; 本课程为Python数据挖掘方向的入门课程,课程主要以真实数据为基础,详细介绍数据挖掘入门的流程和使用Python实现pandas与numpy在数据挖掘方向的运用,并深入学习如何运用scikit-learn调用常用的数据挖掘算法解决数据挖掘问题,为进一步深入学习数据挖掘打下扎实的基础。

2020-五一数学建模大赛C类问题饲料加工配比及优化.pdf

2020年,“51”数学建模C类问题,关于饲料配比问题以及加工优化方案。论文采用统计分析,建立了关于饲料加工的多目标优化模型。并利用蒙特卡罗算法对目标函数进行优化,解决了饲料加工质量最优配比问题并进行

MySQL数据库从入门到实战应用

限时福利1:购课进答疑群专享柳峰(刘运强)老师答疑服务 限时福利2:购课后添加学习助手(微信号:csdn590),按消息提示即可领取编程大礼包! 为什么说每一个程序员都应该学习MySQL? 根据《2019-2020年中国开发者调查报告》显示,超83%的开发者都在使用MySQL数据库。 使用量大同时,掌握MySQL早已是运维、DBA的必备技能,甚至部分IT开发岗位也要求对数据库使用和原理有深入的了解和掌握。 学习编程,你可能会犹豫选择 C++ 还是 Java;入门数据科学,你可能会纠结于选择 Python 还是 R;但无论如何, MySQL 都是 IT 从业人员不可或缺的技能! 【课程设计】 在本课程中,刘运强老师会结合自己十多年来对MySQL的心得体会,通过课程给你分享一条高效的MySQL入门捷径,让学员少走弯路,彻底搞懂MySQL。 本课程包含3大模块:&nbsp; 一、基础篇: 主要以最新的MySQL8.0安装为例帮助学员解决安装与配置MySQL的问题,并对MySQL8.0的新特性做一定介绍,为后续的课程展开做好环境部署。 二、SQL语言篇: 本篇主要讲解SQL语言的四大部分数据查询语言DQL,数据操纵语言DML,数据定义语言DDL,数据控制语言DCL,学会熟练对库表进行增删改查等必备技能。 三、MySQL进阶篇: 本篇可以帮助学员更加高效的管理线上的MySQL数据库;具备MySQL的日常运维能力,语句调优、备份恢复等思路。 &nbsp;

navicat简体中文版 绿色版 (64位)

解压后安装navicat,打开navicat执行PatchNavicat即破解成功。可以正常使用啦。

linux“开发工具三剑客”速成攻略

工欲善其事,必先利其器。Vim+Git+Makefile是Linux环境下嵌入式开发常用的工具。本专题主要面向初次接触Linux的新手,熟练掌握工作中常用的工具,在以后的学习和工作中提高效率。

机器学习初学者必会的案例精讲

通过六个实际的编码项目,带领同学入门人工智能。这些项目涉及机器学习(回归,分类,聚类),深度学习(神经网络),底层数学算法,Weka数据挖掘,利用Git开源项目实战等。

Python代码实现飞机大战

文章目录经典飞机大战一.游戏设定二.我方飞机三.敌方飞机四.发射子弹五.发放补给包六.主模块 经典飞机大战 源代码以及素材资料(图片,音频)可从下面的github中下载: 飞机大战源代码以及素材资料github项目地址链接 ————————————————————————————————————————————————————————— 不知道大家有没有打过飞机,喜不喜欢打飞机。当我第一次接触这个东西的时候,我的内心是被震撼到的。第一次接触打飞机的时候作者本人是身心愉悦的,因为周边的朋友都在打飞机, 每

java jdk 8 帮助文档 中文 文档 chm 谷歌翻译

JDK1.8 API 中文谷歌翻译版 java帮助文档 JDK API java 帮助文档 谷歌翻译 JDK1.8 API 中文 谷歌翻译版 java帮助文档 Java最新帮助文档 本帮助文档是使用谷

Qt5.10 GUI完全参考手册(强烈推荐)

本书是Qt中文版的参考手册,内容详尽易懂,详细介绍了Qt实现的各种内部原理,是一本不可多得的参考文献

Python可以这样学(第四季:数据分析与科学计算可视化)

董付国老师系列教材《Python程序设计(第2版)》(ISBN:9787302436515)、《Python可以这样学》(ISBN:9787302456469)配套视频,在教材基础上又增加了大量内容,通过实例讲解numpy、scipy、pandas、statistics、matplotlib等标准库和扩展库用法。

设计模式(JAVA语言实现)--20种设计模式附带源码

课程亮点: 课程培训详细的笔记以及实例代码,让学员开始掌握设计模式知识点 课程内容: 工厂模式、桥接模式、组合模式、装饰器模式、外观模式、享元模式、原型模型、代理模式、单例模式、适配器模式 策略模式、模板方法模式、观察者模式、迭代器模式、责任链模式、命令模式、备忘录模式、状态模式、访问者模式 课程特色: 笔记设计模式,用笔记串连所有知识点,让学员从一点一滴积累,学习过程无压力 笔记标题采用关键字标识法,帮助学员更加容易记住知识点 笔记以超链接形式让知识点关联起来,形式知识体系 采用先概念后实例再应用方式,知识点深入浅出 提供授课内容笔记作为课后复习以及工作备查工具 部分图表(电脑PC端查看):

进程监控软件 Performance Monitor中文版

告诉你每个程序现在在做什么,还可以根据你的要求过滤无关的内容。

八数码的深度优先算法c++实现

人工智能的八数码的深度优先算法c++实现

2021考研数学张宇基础30讲.pdf

张宇:博士,全国著名考研数学辅导专家,教育部“国家精品课程建设骨干教师”,全国畅销书《张宇高等数学18讲》《张宇线性代数9讲》《张宇概率论与数理统计9讲》《张宇考研数学题源探析经典1000题》《张宇考

2019 Python开发者日-培训

本次活动将秉承“只讲技术,拒绝空谈”的理念,邀请十余位身处一线的Python技术专家,重点围绕Web开发、自动化运维、数据分析、人工智能等技术模块,分享真实生产环境中使用Python应对IT挑战的真知灼见。此外,针对不同层次的开发者,大会还安排了深度培训实操环节,为开发者们带来更多深度实战的机会。

C/C++跨平台研发从基础到高阶实战系列套餐

一 专题从基础的C语言核心到c++ 和stl完成基础强化; 二 再到数据结构,设计模式完成专业计算机技能强化; 三 通过跨平台网络编程,linux编程,qt界面编程,mfc编程,windows编程,c++与lua联合编程来完成应用强化 四 最后通过基于ffmpeg的音视频播放器,直播推流,屏幕录像,

2020_五一数学建模_C题_整理后的数据.zip

该数据是我的程序读取的数据,仅供参考,问题的解决方案:https://blog.csdn.net/qq_41228463/article/details/105993051

机器学习实战系列套餐(必备基础+经典算法+案例实战)

机器学习实战系列套餐以实战为出发点,帮助同学们快速掌握机器学习领域必备经典算法原理并结合Python工具包进行实战应用。建议学习顺序:1.Python必备工具包:掌握实战工具 2.机器学习算法与实战应用:数学原理与应用方法都是必备技能 3.数据挖掘实战:通过真实数据集进行项目实战。按照下列课程顺序学习即可! 课程风格通俗易懂,用最接地气的方式带领大家轻松进军机器学习!提供所有课程代码,PPT与实战数据,有任何问题欢迎随时与我讨论。

实用主义学Python(小白也容易上手的Python实用案例)

原价169,限时立减100元! 系统掌握Python核心语法16点,轻松应对工作中80%以上的Python使用场景! 69元=72讲+源码+社群答疑+讲师社群分享会&nbsp; 【哪些人适合学习这门课程?】 1)大学生,平时只学习了Python理论,并未接触Python实战问题; 2)对Python实用技能掌握薄弱的人,自动化、爬虫、数据分析能让你快速提高工作效率; 3)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; 4)想修炼更好的编程内功,优秀的工程师肯定不能只会一门语言,Python语言功能强大、使用高效、简单易学。 【超实用技能】 从零开始 自动生成工作周报 职场升级 豆瓣电影数据爬取 实用案例 奥运冠军数据分析 自动化办公:通过Python自动化分析Excel数据并自动操作Word文档,最终获得一份基于Excel表格的数据分析报告。 豆瓣电影爬虫:通过Python自动爬取豆瓣电影信息并将电影图片保存到本地。 奥运会数据分析实战 简介:通过Python分析120年间奥运会的数据,从不同角度入手分析,从而得出一些有趣的结论。 【超人气老师】 二两 中国人工智能协会高级会员 生成对抗神经网络研究者 《深入浅出生成对抗网络:原理剖析与TensorFlow实现》一书作者 阿里云大学云学院导师 前大型游戏公司后端工程师 【超丰富实用案例】 0)图片背景去除案例 1)自动生成工作周报案例 2)豆瓣电影数据爬取案例 3)奥运会数据分析案例 4)自动处理邮件案例 5)github信息爬取/更新提醒案例 6)B站百大UP信息爬取与分析案例 7)构建自己的论文网站案例

相关热词 c#设计思想 c#正则表达式 转换 c#form复制 c#写web c# 柱形图 c# wcf 服务库 c#应用程序管理器 c#数组如何赋值给数组 c#序列化应用目的博客园 c# 设置当前标注样式
立即提问