Flutter How to run flutter pub get while app is debugging? - flutter

I have a small question.
When we debug app if we press r app reloads or R hot restart.
But how to run get flutter packages.
I cannot write the whole line flutter pug get it goes to new line in command prompt.

you can use another terminal/command prompt go to project directory to run flutter pub get.
but if you use VsCode it is very easy to run and debug the project
you can also use the terminal to run flutter pub get in it
VsCode provide run menu that really helps to run the project and when you save changes in pubspec.yaml it automatically get packages.
but make sure that you have install flutter and dart plugins in VsCode

Related

Using Run Anything for Flutter commands on Intellij

I want to use Flutter commands to Run Anything popup. I was doing this on VS Code, but couldn't do it on IntelliJ. I searched a lot but couldn't find the info I want.
Below pictures show what I want to do.
This is how I use it on VSCode
This is IntelliJ, which has no commands for Flutter
Also, I manually tried running commands like
flutter pub get
but it results with this
.

Can not install Flutter on MacOs, Tells that the unzip process is not working

When I try to install
unzip ~/Downloads/flutter_macos_2.2.2-stable.zip
this message pops up
unzip: cannot find or open /Users/user/Downloads/flutter_macos_2.2.2-stable.zip, /Users/user/Downloads/flutter_macos_2.2.2-stable.zip.zip or /Users/user/Downloads/flutter_macos_2.2.2-stable.zip.ZIP.
I don't what to do to install Flutter to OSX (vscode)
I can obtain flutter for Android Studio with no problems.
Also can't access flutter by itself on iTerm or Terminal.
First, it seems that your archive has two extensions .zip.zip, but it's probably not the problem you're facing.
You may want to check if your iTerm has the necessary permissions to access the content of the folder "Download" since it's a special folder for MacOS.
Second, for creating a flutter project through VSCode, you need to run the command flutter create myprojectnamehere, you will not have a button to create a flutter project like on Android Studio.
If you still facing issues with the installation of Flutter, you may want to checkout Flutter_Installer which is a Flutter GUI Installer made with Flutter.

No pubspec.yaml file found. in flutter VS Code

I Want to build project but i always get this error. I know it doesn't because of my code. But i don't understand.By the way i can run the application on emulator pixel 3. But i can't run in terminal. Maybe the terminal affecting the error.
You can click + and type flutter run again. It work for me

New flutter package not worknig

pls help me out i'v tried everything. i did
flutter clean
flutter packages get
flutter packages upgrade
Restart Visual Studio (by using command: reload window)
take a look, my import package is not working...this is the image:
sorry, i already figure out myself. when a package is not working run the commands i provide, and then open your app (the app you are programming... well hit run). this will make VSCODE start actually running the commands and will run the {flutter pub get}. Try it out!
have a great one :)!

I can't run any flutter commands after installing it. Nothing happens

I installed flutter and set it to path, but when I tried to run any flutter command fx "flutter doctor" nothing happens.
https://i.imgur.com/UErgyT5.png
What do I do from here?
I've uninstalled and reinstalled flutter, but it still does not work.
open windows terminal as an administrator....then run flutter it will install missing files if any then run flutter doctor to see if anything else is missing.....incase the command is not recognised please add the path to system variables