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
.
Related
I'm new in flutter and trying to learn about it for the first time.
I'm following the instruction of flutter documentation in here
When in step to the setting environment, I follow the instruction here.
After restarting the pc, the next step I must running the command flutter doctor in cmd.
In this step, I get stuck because in cmd, flutter doesn't response anything.
I try to execute flutter inside VSCode It still stuck with loading.
I also try to running with android studio, Still the same, I get stuck with loading
What should I do?
I missed the important thing.
Just don't put it in the privilege directory.
I'm relatively new to Flutter but I already have developed and finished some Apps in Flutter.
Recently I noticed a weird behavior of commands with the keywords "dart" or "flutter" in it.
Here is an example:
I was trying to migrate an existing project to the new dart null-safety and typed the command dart migrate into my Visual-Studio-Code Terminal.
I was expecting an output like Migrating C:\.... as a response but instead got these three lines:
The command "git" is either misspelled or could not be found.
Building flutter tool...
Running pub upgrade...
and then the expected output:
Migrating C:\<project path>...
and so on.
So basically the commands work as they would normally do but I get these three lines before the output everytime. And it's not only with this command. Also basic commands like dart help or flutter doctor will get these three lines.
I don't know what I am doing wrong. I uninstalled Flutter and also removed it from the PATH and then reinstalled it freshly but it's still the same. I also searched the web but didn't found anyone who has the same problem.
Any help and explanation would be great. Thank you for your time :)
I think I know where the problem is. I ran the commands directly when I opened PowerShell. But the directory was something like C:\Windows\ and then it won't work.
After I did cd C:\Users\User all commands will work as expected.
I was just thinking that it doesn't matter from where I run dartand fluttercommands obviously you have to be in your user directory that they will work properly.
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
I am new to dart.
I have configured, dart + flutter + vscode etc. In the vscode i am able to run .dart file through Debug panel.
What I want it to run the program on file save. Just like I do in node.js using nodemon package. it watches the files save and rerun the app.
Is something like this possible in VSCode.
This looks promising. He modified Save and Run Ext plugin for VS Code
Go to Vs code settings
next type flutter hot on search box.
then select these two options
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 :)!