I am using Windows 10 with VS Code, although I also tested it on PowerShell, and both produced the same result:
After creating a new flutter program, before editing anyt
It seems you are running command from the flutter sdk installed folder. Instead you should run the command from the project you have created.
Match your steps you have done from below mentioned steps:
Clone flutter or unzip flutter sdk (you have downloaded) and move the flutter folder to C drive.
Now check whether the flutter is installed properly or not by running command(flutter --version) from any folder. Make sure you have set the flutter path inside environment variable.
If it is installed, move to any folder where you want to create your project and type this command "flutter create project_name"
Now move to the folder you have recently created and then run "flutter run" from that folder
I think this will surely help you.
step 1 : Add this to your package's pubspec.yaml file: url_launcher: ^5.0.2
step 2: When You come back to main.dart file you can see the get dependencies. when yo click on that link "flutter packages get" command will run. You can get the URL Launcher package
Maybe you should check to see if the project directory you opened is correct. I had this problem because the project directory opened to the project's parent directory. You must ensure that the file exists in the project directory you have opened.
@James M, go to command prompt and run
flutter upgrade
and then try to create a new project using the command
flutter create new_project
It would work fine.
You need to execute the following command:
flutter pub global activate webdev