Flutter for windows

Post on 01-Mar-2022

6 views 0 download

Transcript of Flutter for windows

Flutter for windows

1- First go to this website to install flutter https://flutter.dev/2- press Get started

3- click on windows icon

System Requirements

System requirements

To install and run Flutter, your development environment must meet these minimum requirements:•Operating Systems: Windows 7 SP1 or later (64-bit), x86-64 based.•Disk Space: 1.64 GB (does not include disk space for IDE/tools).•Tools: Flutter depends on these tools being available in your environment.

•Windows PowerShell 5.0 or newer (this is pre-installed with Windows 10)•Git for Windows 2.x, with the Use Git from the Windows Command Prompt option.

If Git for Windows is already installed, make sure you can run git commands from the command prompt or PowerShell.

4- Install Git for windows by clicking on the Git

5 – then download according your pc 32- 64 bit

Installing Git• Use all default

then click next

• Only choose these while installing git

After installing Git go to windows PowerShell

Write git --version in the Windows PowerShell

• If you find this git version your installation is correct • If not try to reinstall again• This version can change due to updates

Get the Flutter SDK

Extraction of Flutter SDK

• Extract the flutter SDK Folder in to desired location• Recommended (Document)

Update your path

• Run the Edit the system environment variables then click on Environment variables.• Select the path then click on Edit

Updating the path

• After selecting new go back to flutter SDK folder then locate the bin folder copy the path• Copy directory Path from the inside bin Flutter SDK Folder

Updating the path

• Click new then paste the Flutter SDK bin directory path here

• After press OK

Checking Flutter availability & path

• Run the flutter command on Windows PowerShell

• If you see this output that means the path have been updated successfully

Flutter doctor • Flutter doctor command will show you the issues found in the flutter SDK

• It will show you the missing components need to be installed

• At this point in your installation process you should see these errors, which indicate android studio has not been installed

• If you are seeing something different, then follow the steps in the “android studio uninstall” slides to fix it.

If you have Android studio uninstall them if not skip this process • Step 1:uninstall from control panel-> add or remove programs

• Step 2: remove “ .android .gradle .AndroidStudio” files from user profile

• Step 3: remove “ android folder ” from app data

Delete android studio in the file location

• Uninstall Android studio from the File location

• Go to C :/ locate Program files then delete android folder

Download Android studio

Download android studio from this link : https://developer.android.com/studio

Android studio setup

Missing SDK

• If you see missing SDK you are on the right track

SDK Components Setup

Android Studio License status unknown

• To fix Android Studio License status unknown just run this command

• flutter doctor --android-licenses

• After running the command press y couple times.

• Then SDK package licenses accepted

• If this didn’t work follow steps in the next slide

License Agreement

Flutter doctor all working

• If all requirements are ticked green you won the battle but you didn’t win the war.. YET!

Set up the android emulator

AVD Manager

Create your Device

Install the flutter and dart plugins

Install the flutter and dart plugins

Testing

• Insert the flutter SDK path

Flutter SDK path