Flutter can be used to create awesome Windows applications, which is possible by enabling the feature. Before that I would like recommend to run the basic flutter setup on Windows.
Flutter become popular cross platform development tool. Let’s Install Flutter in Windows. As a open source project, we can install the flutter SDK from GitHub.
The minimum requirement for Flutter for Windows is Windows 10 or later . In order to clone the repository we have to use git. Also recommend to have Visual Code /Atom for editing the code.
Download and install the Git tool for windows
Clone the repository
Get the latest stable version from GitHub repository or alternatively can download from flutter site
git clone https://github.com/flutter/flutter.git -b stable --depth 1
Use the -b option to clone the stable version
Set the path variable
You also need to update the path variables
- From the Start search bar, enter ‘env’ and select Edit environment variables for your account.
- Under-User variables check if there is an entry called Path:
- If the entry exists, append the full path to
;as a separator from existing values.
- If the entry doesn’t exist, create a new user variable named
Pathwith the full path to
flutter\binas its value.
Call the Doctor
run Flutter doctor command to inspect status of your Flutter SDK and tools installed
Android IOS development
For Android you have to install the Android Studio for development tool support which can be download from official website.
Enable desktop feature
In order to make Windows ready for Flutter desktop development environment we should have following dependencies
- Microsoft Visual Studio – “Desktop development with C++”, you can install the community edition for free.
Now switch to the dev channel and run upgrade command, which will install necessary libraries and packages.
flutter channel dev
Configure the feature using config
flutter config --enable-windows-desktop
run the flutter doctor and then flutter devices as follows
Make sure the devices command list the Linux desktop
Create sample Flutter project
flutter create myweb_app
run the app using flutter run command
flutter run -d windows