I have tried upgrading flutter to the latest version. I am still getting the same error.
I was getting the exact same error.
After Renaming my working directory as per the naming convention attached by the Flutter team here which @Rushikesh just mentioned. It worked for me..
The reason is that the Flutter SDK uses directory/folder names as packages names and I was using a hyphen in my directory name.
In your case mybmicalculator
or my_bmi_calculator
might work instead of myBmiCalculator
.
Give it a try, that might be one of the errors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With