- warning: LF will be replaced by CRLF in pubspec.lock. The file will have its original line endings in your working directory
执行命令 即可:git config --global core.autocrlf false 。 ----(https://blog.csdn.net/csdn799316120/article/details/79565579)
- The current Dart SDK version is 2.13.4.
Because flutterapp depends on path_provider >=2.0.5 which requires SDK version >=2.14.0 ❤️.0.0, version solving failed.
直接上链接,亲测可用。https://www.jianshu.com/p/cb9f2af0d3da
- RangeError (index): Invalid value: Only valid value is 0: 1
var show = MultiShower(
[Axis.horizontal,Axis.vertical],
(e) {
return Flex(
direction: e,
children: <Widget>[
...
],
);
},
color: Colors.black,
height: 300,
width: 500,
infos: ["test"],
);
范围错误,刚开始看见这个错误的时候,没注意RangeError这个关键字,还以为是后面的infos集合没给具体值导致的,后面给infos加了具体值还是会报这个错误,于是一想,方位的话总不能是两个,应该是一个具体的,于是将 [Axis.horizontal,Axis.vertical], 改成 [Axis.horizontal],就ok拉。