创建工程不能用驼峰命名


flutter create ofFile
"ofFile" is not a valid Dart package name.


From the [Pubspec format
description](https://www.dartlang.org/tools/pub/pubspec.html):

**DO** use `lowercase_with_underscores` for package names.

Package names should be all lowercase, with underscores to separate words,
`just_like_this`.  Use only basic Latin letters and Arabic digits: [a-z0-9_].
Also, make sure the name is a valid Dart identifier -- that it doesn't start
with digits and isn't a reserved word.

将命令flutter create ofFile改为flutter create offile即可

标签: flutter, is not a valid Dart package name

添加新评论