This requires the 'control-flow-collections' experiment to be enabled showing after upgrade flutter

时光总嘲笑我的痴心妄想 提交于 2020-07-23 06:40:44

问题


After flutter upgrade fetching below error

This requires the 'control-flow-collections' experiment to be enabled. Try enabling this experiment by adding it to the command line when compiling and running.dart(experiment_not_enabled)

Current version info

Flutter 1.17.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision e6b34c2b5c (7 days ago) • 2020-05-02 11:39:18 -0700
Engine • revision 540786dd51
Tools • Dart 2.8.1

pubspec.yaml file environment

environment:
sdk: ">=2.8.1 <3.0.0"

来源:https://stackoverflow.com/questions/61694677/this-requires-the-control-flow-collections-experiment-to-be-enabled-showing-af

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!