HOW TO INSTALL, CREATE, AND BUILD A FLUTTER APP
A simple introduction to create fantastic apps with Flutter
Installing the Flutter (Windows)
- Download Flutter
- Extract the Flutter to a folder of preference (do not install in a location like
C:\Program Filesbecause it requires elevated privileges) - Run the file
flutter_console.bat
A prompt window with Flutter commands will open.
For a better way to work with Flutter, add the flutter\bin folder to the path of your S.O.
Preparing environment (Android)
-
Tools
- Download Android Studio
- Open Android Studio after the download go to the
Android Studio Setup Wizard, and install the latest versions ofAndroid SDK,Android SDK Platform-Tools, andAndroid SDK Build-Tools
-
Preparing to roll no device
- Enable 'Developer options
andUSB debugging` options on the device - Download Google USB Driver
- Play your phone to your computer
- Run the
flutter devicescommand to make sure Flutter has recognized your device
- Enable 'Developer options
-
Preparing to run on the emulator
- Enable VW acceleration
- Go to
Android Studio> Tools> Android> AVD Manager and SelectCreate Virtual Device - Choose a template and move forward
- Choose image (x86)
- Enable Hardware Acceleration clicando em
Hardware - GLES 2.0 - Click Finish
- Click to rotate
Running the Project
-
Installing dependencies
- Go to the main project folder
- Run the
flutter packages getcommand
-
Rotate project
flutter devicesto confirm that there are devices / emulators availableflutter run
