Flutter Installation & Setup Guide
Last updated
Last updated
All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.
Install Flutter on your device
After installation of Flutter, to check the installed version, use the command flutter --version
Note: Version might vary based on the current version used in the project
Run the Flutter Doctor command once the Flutter is installed. The Flutter Doctor performs the following tasks:
Downloads missing files required by the development environment.
Ensures we’ve installed the following:
Android SDK
Apple Xcode (on Mac)
Ensures that we’ve agreed to all software development licenses.
Checks the Android Studio IDE setup and recommends any changes required to get it working with Flutter.
Checks for connected devices.
Verifies that Flutter can recognize any connected hardware devices.
Recommends any changes required to get them connected and working.
Outputs a diagnosis, listing out issues found and recommendations.
If you want to run in local Chrome, make sure web security is disabled to avoid CORS errors.
Find below the steps to disable the web security of Chrome
Go to the folder where your flutter is added--flutter\bin\cache and remove a file named: flutter_tools.stamp
Go to flutter\packages\flutter_tools\lib\src\web and open the file chrome.dart.
Find '--disable-extensions'
Add '--disable-web-security'