# Flutter Installation & Setup Guide

## Steps

1. Install Flutter on your device
   * [Install Flutter](https://docs.flutter.dev/get-started/install)
   * [Setup an Editor](https://docs.flutter.dev/get-started/editor)\\
2. After installation of Flutter, to check the installed version, use the command **flutter --version**

{% hint style="info" %}
**Note: Version might vary based on the current version used in the project**
{% endhint %}

<figure><img src="https://lh4.googleusercontent.com/itLJFo7KgDfwn0va0DTnXiTY7fWN2qz-mXuJSq8JYc-l1dFZ5spv9qQbct-HZRHK2n71-BWnuB_94ij5VrXgEdB6ceowF5W7tglDY4TbvCNsBusH2Zq7bAI_LtX7lgX269NYzBi4IzjbdZJP8PXus0g" alt=""><figcaption></figcaption></figure>

3. 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.
4. 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

{% hint style="info" %}

* `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'`
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digit.org/platform/guides/developer-guide/flutter-mobile-app-ui-developer-guide/setup-development-environment/flutter-installation-and-setup-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
