To use the flutter commands in any IDE in windows you need to add the flutter SDK to the windows environements. To do so just follow the simple steps below:
- Right click on the computer icon in desktop (make sure its not a shortcut) and select properties.
On the left side of the new opened window click on Advanced system settings.
Now in the system properties window that opens select Environment Variables.
In the new window double click on path to open a new window.
- In the new window opened click on New and paste the path of the bin folder located in the flutter sdk folder. For example my path is this:
D:FlutterSDKflutterin
Note: It doesn't matter where you want to place the flutter SDK, just copy and paste the path of the bin folder here.
- Click OK, OK, OK.
Now you're all set. Try restarting the IDE or even better restart the PC.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…