Introduction
This article is informing about how to install flutter in Microsoft Windows. As it exist in a site in this link, flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, desktop, and embedded devices from a single codebase. The step for installing flutter exist in this link :
-
First of all, just download the flutter installer. It is available in this link where there are many versions available for various operating system. In this context, the file name is ‘flutter_windows_2.5.3-stable.zip’. Normally, it will exist in ‘C:\Users\UserName\Download\’
-
Actually, the flutter installer for the Windows operating system is in a compressed format of zip file. After successfully downloading the flutter installer, just extract it. So, the result of the extraction process will exist in ‘C:\Users\UserName\Download\flutter_windows_2.5.3-stable’.
- In order to make it easy for further access, just rename it into ‘flutter’.
Installation and Configuration
Soon after the file exist and available, it will be possible to configure it further. The following is the installation and configuration for executing flutter in Microsoft Windows.
-
After successfully extracting the file into a certain folder, just move it into a certain path. In this context, it exist in drive C or C:\. So, overall the path will be ‘C:\flutter_windows_2.5.3-stable’ or just ‘C:\flutter’ after renaming the folder.
-
Following after, add it in the environment variable of the operating system which in this context it is Windows 10 as an example. Search the environment variables tool through text field near the Start button. The following environment variable window box will appear :
-
Click the Environment Variables button, the following dialog box will appear :
Just select the ‘Path’ Variable name in the System variables. Following after, just click the ‘Edit…’ button to begin editing the path. The main purpose is for adding the ‘flutter’ path to the ‘Path’ environment variable. So, the following window dialog box will appear :
The above display actually already contains the flutter path executable command which exist in ‘C:\flutter\bin’. If there is no entry containing the flutter path executable command, just click the New button. It will automatically add a new line asking the flutter path executable command. After inserting the path which in this example is in ‘C:\flutter\bin’ just click the OK button.
- Finally, just test it in the Command Prompt by typing the command ‘flutter’ as follows :
C:\Users\Administrator>flutter Manage your Flutter app development. Common commands: flutter create <output directory> Create a new Flutter project in the specified directory. flutter run [options] Run your Flutter application on an attached device or in an emulator. Usage: flutter <command> [arguments] Global options: -h, --help Print this usage information. -v, --verbose Noisy logging, including all shell commands executed. If used with "--help", shows hidden options. If used with "flutter doctor", shows additional diagnostic information. (Use "-vv" to force verbose logging in those cases.) -d, --device-id Target device id or name (prefixes allowed). --version Reports the version of this tool. --suppress-analytics Suppress analytics reporting when this command runs. Available commands: analyze Analyze the project's Dart code. assemble Assemble and build Flutter resources. attach Attach to a running app. bash-completion Output command line shell completion setup scripts. build Build an executable app or install bundle. channel List or switch Flutter channels. clean Delete the build/ and .dart_tool/ directories. config Configure Flutter settings. create Create a new Flutter project. custom-devices List, reset, add and delete custom devices. devices List all connected devices. doctor Show information about the installed tooling. downgrade Downgrade Flutter to the last active version for the current channel. drive Run integration tests for the project on an attached device or emulator. emulators List, launch and create emulators. format Format one or more Dart files. gen-l10n Generate localizations for the current project. install Install a Flutter app on an attached device. logs Show log output for running Flutter apps. precache Populate the Flutter tool's cache of binary artifacts. pub Commands for managing Flutter packages. run Run your Flutter app on an attached device. screenshot Take a screenshot from a connected device. symbolize Symbolize a stack trace from an AOT-compiled Flutter app. test Run Flutter unit tests for the current project. upgrade Upgrade your copy of Flutter. Run "flutter help <command>" for more information about a command. Run "flutter help -v" for verbose help output, including less commonly used options. C:\Users\Administrator>