Flutter comes with a tool called Flutter Doctor that will be your new best friend when setting up the SDK. Flutter Doctor will give you a list of everything that needs to be done to make sure that Flutter can run correctly. You are going to use Flutter Doctor as a guide during the installation process. This tool is also invaluable to check whether your system is up to date.
In your terminal window, type the following command:
flutter doctor
Flutter Doctor will tell you if your platform SDKs are configured properly and whether Flutter can see any devices, including the web browser.