颤振升级会在“颤振通道<channel-name>”之后每次下载新的Dart SDK

时间:2020-05-21 21:30:35

标签: flutter

我需要经常在stablemaster频道之间切换,以使用一些新功能或能够运行某些项目(例如flutter / gallery)。

并且每次我运行命令flutter channel master / stable后跟flutter upgrade时,似乎都在下载新的Dart SDK,其中包含许多其他内容(请参见下面的输出) ),因此切换并不轻松,我不得不等待,即使频道之间的时间只有几秒钟!

> flutter channel stable
Switching to flutter channel 'stable'...
git: Your branch is up to date with 'origin/stable'.
git: Switched to branch 'stable'
Successfully switched to flutter channel 'stable'.
To ensure that you're on the latest build from this channel, run 'flutter upgrade'
PS D:\DevLib\Flutter\flutter_course> flutter doctor        
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine 6bc433c6b6b5b98dcf4cc11aff31cdee90849f32...
Unzipping Dart SDK...
Building flutter tool...
Running pub upgrade...

  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.dev                  ║
  ║                                                                            ║
  ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
  ║ statistics and basic crash reports. This data is used to help improve      ║
  ║ Flutter tools over time.                                                   ║
  ║                                                                            ║
  ║ Flutter tool analytics are not sent on the very first run. To disable      ║
  ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
  ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
  ║ event will be sent, and then no further information will be sent by the    ║
  ║ Flutter tool.                                                              ║
  ║                                                                            ║
  ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
  ║ Note: The Google Privacy Policy describes how data is handled in this      ║
  ║ service.                                                                   ║
  ║                                                                            ║
  ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
  ║ crash reports to Google.                                                   ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://flutter.dev/docs/reference/crash-reporting                         ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://policies.google.com/privacy                                        ║
  ╚════════════════════════════════════════════════════════════════════════════╝


Downloading package sky_engine...                                   1.6s
Downloading flutter_patched_sdk tools...                            6.4s
Downloading flutter_patched_sdk_product tools...                    6.4s
Downloading windows-x64 tools...                                   14.9s
Downloading windows-x64/font-subset tools...                        2.3s
Downloading android-arm-release/windows-x64 tools...                1.5s
Downloading android-arm64-profile/windows-x64 tools...              1.9s
Downloading android-arm64-release/windows-x64 tools...              1.5s
Downloading android-x64-profile/windows-x64 tools...                1.9s
Downloading android-x64-release/windows-x64 tools...                1.7s
Doctor summary (to see all details, run flutter doctor -v):

1 个答案:

答案 0 :(得分:0)

是的,频道切换afaik基本上没有缓存。

我建议您同时查看this articlethis plugin