升级dart

小于 1 分钟

升级dart

注意:如果更新出现错误,就Go inside the flutter/bin folder and delete the cache folder. 然后重新flutter upgrade,让他自己下载dartsdk, 如果无法解压,就安装一下7z->scoop install 7zip

dart sdk下载地址https://storage.flutter-io.cn/dart-archive/channels/stable/release/2.8.3/sdk/dartsdk-windows-x64-release.zipopen in new window

升级dart到2.12

  • @required改为required
  • 可以为null的类型使用string?修饰

组件被废弃

FlatButton被TextButton替代

this is c++ demo code

#include <iostream>
using namespace std;
 
int main() 
{
    cout << "Hello, World!";
    return 0;
}