I am getting the following error on running flutter create my_appName: "my_appName" is not a valid Dart package name

1,935

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.

see this - https://dart-lang.github.io/linter/lints/package_names.html

Share:
1,935
Shehzadahmad_
Author by

Shehzadahmad_

Updated on December 30, 2022

Comments

  • Shehzadahmad_
    Shehzadahmad_ over 1 year

    enter image description here

    I have tried upgrading flutter to the latest version. I am still getting the same error.

    • jamesdlin
      jamesdlin almost 3 years
      The error message included a link with details. Was there anything unclear about that documentation that needs to be improved?